]> git.proxmox.com Git - qemu.git/blobdiff - block.c
Fix bdrv_get_geometry to return uint64_t, by Andre Przywara.
[qemu.git] / block.c
diff --git a/block.c b/block.c
index 3cb3cc22dc9abf982aa55e4a770c9469b5a99e4f..8ec86adda5aa925ea50a835436646ff033057d72 100644 (file)
--- a/block.c
+++ b/block.c
@@ -717,7 +717,7 @@ int64_t bdrv_getlength(BlockDriverState *bs)
 }
 
 /* return 0 as number of sectors if no device present or error */
-void bdrv_get_geometry(BlockDriverState *bs, int64_t *nb_sectors_ptr)
+void bdrv_get_geometry(BlockDriverState *bs, uint64_t *nb_sectors_ptr)
 {
     int64_t length;
     length = bdrv_getlength(bs);