Hi,
This one is more of a generic qemu nit, do you want to take it or should
I send it elsewhere?
Cheers,
Jes
Fix type of nb_sectors to match parameter of bdrv_get_geometry().
Signed-off-by: Jes Sorensen <[EMAIL PROTECTED]>
---
qemu/block.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Index: kvm-userspace.git/qemu/block.c
===================================================================
--- kvm-userspace.git.orig/qemu/block.c
+++ kvm-userspace.git/qemu/block.c
@@ -771,7 +771,7 @@
int ret, i, heads, sectors, cylinders;
struct partition *p;
uint32_t nr_sects;
- int64_t nb_sectors;
+ uint64_t nb_sectors;
buf = qemu_memalign(512, 512);
if (buf == NULL)
@@ -819,7 +819,7 @@
{
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);