]> git.proxmox.com Git - mirror_qemu.git/commit - include/hw/qdev-core.h
qdev: avoid type casts between signed and unsigned
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Wed, 7 Jun 2017 16:36:09 +0000 (20:36 +0400)
committerMarkus Armbruster <armbru@redhat.com>
Tue, 20 Jun 2017 12:31:32 +0000 (14:31 +0200)
commit3fb2111fc9bb9c73bae81c6696bcf333690147b0
tree42de6d088d7f095d601d17ceee95678937bc3dfa
parent76318657a803c542cdee232c8507dec8004e2478
qdev: avoid type casts between signed and unsigned

Modify the unsigned type for various properties to use QNUM_U64, to
avoid type casts.

There are a few empty lines added to improve code reading/style.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20170607163635.17635-18-marcandre.lureau@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
[Change to set_default_value_enum() dropped]
Signed-off-by: Markus Armbruster <armbru@redhat.com>
hw/core/qdev-properties.c
include/hw/qdev-core.h
include/hw/qdev-properties.h