OSDN Git Service

hd-geometry: Switch to uint32_t to match BlockConf
authorMarkus Armbruster <armbru@redhat.com>
Tue, 10 Jul 2012 09:12:41 +0000 (11:12 +0200)
committerKevin Wolf <kwolf@redhat.com>
Tue, 17 Jul 2012 14:48:30 +0000 (16:48 +0200)
commit1f24d7b47e1f18b5e7f0f050f915a42e9aa645db
tree31468afd9a369f7e0f6d6ef9e5b33fcd8a9f68bc
parent8a4bc5aafa7286e03bbced8abdb43aa6abdf95ea
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>
hw/block-common.h
hw/hd-geometry.c
hw/ide/core.c
hw/scsi-disk.c
hw/virtio-blk.c
trace-events