diff options
author | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-12-05 17:56:40 +0000 |
---|---|---|
committer | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-12-05 17:56:40 +0000 |
commit | 951e8a95d91924e8f979073015c291fa8bb47dfb (patch) | |
tree | 1588e622b8523f82e02a5a09dbef6fa5dfd95dd3 /block.c | |
parent | 78bb81b1bf582cb13bd0db254258dac93a1c46a6 (diff) | |
download | qemu-951e8a95d91924e8f979073015c291fa8bb47dfb.tar.gz qemu-951e8a95d91924e8f979073015c291fa8bb47dfb.tar.bz2 qemu-951e8a95d91924e8f979073015c291fa8bb47dfb.zip |
Attached patch contains warning fixes.
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5888 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'block.c')
-rw-r--r-- | block.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -765,7 +765,7 @@ static int guess_disk_lchs(BlockDriverState *bs, int ret, i, heads, sectors, cylinders; struct partition *p; uint32_t nr_sects; - int64_t nb_sectors; + uint64_t nb_sectors; bdrv_get_geometry(bs, &nb_sectors); @@ -805,7 +805,7 @@ void bdrv_guess_geometry(BlockDriverState *bs, int *pcyls, int *pheads, int *pse { int translation, lba_detected = 0; int cylinders, heads, secs; - int64_t nb_sectors; + uint64_t nb_sectors; /* if a geometry hint is available, use it */ bdrv_get_geometry(bs, &nb_sectors); |