aboutsummaryrefslogtreecommitdiff
path: root/hw/block-common.h
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2012-07-10 11:12:41 +0200
committerKevin Wolf <kwolf@redhat.com>2012-07-17 16:48:30 +0200
commit1f24d7b47e1f18b5e7f0f050f915a42e9aa645db (patch)
tree31468afd9a369f7e0f6d6ef9e5b33fcd8a9f68bc /hw/block-common.h
parent8a4bc5aafa7286e03bbced8abdb43aa6abdf95ea (diff)
hd-geometry: Switch to uint32_t to match BlockConf
Best to use the same type, to avoid unwanted truncation or sign extension. BlockConf can't use plain int for cyls, heads and secs, because integer properties require an exact width. Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'hw/block-common.h')
-rw-r--r--hw/block-common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/block-common.h b/hw/block-common.h
index bba817a5ba..2f651867d2 100644
--- a/hw/block-common.h
+++ b/hw/block-common.h
@@ -16,7 +16,7 @@
/* Hard disk geometry */
void hd_geometry_guess(BlockDriverState *bs,
- int *pcyls, int *pheads, int *psecs,
+ uint32_t *pcyls, uint32_t *pheads, uint32_t *psecs,
int *ptrans);
#endif