mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-09-08 16:07:39 -06:00
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
This commit is contained in:
parent
b3efe5c890
commit
a38131b669
3 changed files with 7 additions and 5 deletions
4
block.c
4
block.c
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue