diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2013-11-08 11:13:01 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-11-08 15:27:17 +0100 |
commit | e55160fe10ffce82df8e39d6dda48ee9512bf066 (patch) | |
tree | 00d85a13b1bcad27c7812aee86ec74db46351242 /commands/filetype.c | |
parent | 480782a2659bd14f751d893abeed974443c5976c (diff) | |
download | barebox-e55160fe10ffce82df8e39d6dda48ee9512bf066.tar.gz barebox-e55160fe10ffce82df8e39d6dda48ee9512bf066.tar.xz |
partitions: dos: improve guess of disk size
The code used to ineffectively take the end of the last partition as guess
for the disk size. Better use the end of the partition that has its end
rearmost.
Also return an unsigned type instead of int as the result is always
non-negative.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands/filetype.c')
0 files changed, 0 insertions, 0 deletions