diff options
| author | Markus Armbruster <armbru@redhat.com> | 2012-07-10 11:12:41 +0200 |
|---|---|---|
| committer | Kevin Wolf <kwolf@redhat.com> | 2012-07-17 16:48:30 +0200 |
| commit | 1f24d7b47e1f18b5e7f0f050f915a42e9aa645db (patch) | |
| tree | 31468afd9a369f7e0f6d6ef9e5b33fcd8a9f68bc /hw/virtio-blk.c | |
| parent | 8a4bc5aafa7286e03bbced8abdb43aa6abdf95ea (diff) | |
| download | focaccia-qemu-1f24d7b47e1f18b5e7f0f050f915a42e9aa645db.tar.gz focaccia-qemu-1f24d7b47e1f18b5e7f0f050f915a42e9aa645db.zip | |
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/virtio-blk.c')
| -rw-r--r-- | hw/virtio-blk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/virtio-blk.c b/hw/virtio-blk.c index d2709a741e..4344e28380 100644 --- a/hw/virtio-blk.c +++ b/hw/virtio-blk.c @@ -590,7 +590,7 @@ static const BlockDevOps virtio_block_ops = { VirtIODevice *virtio_blk_init(DeviceState *dev, VirtIOBlkConf *blk) { VirtIOBlock *s; - int cylinders, heads, secs; + uint32_t cylinders, heads, secs; static int virtio_blk_id; DriveInfo *dinfo; |