Commit 89a740e16cee362318bfd40a88616336bce87e2e
1 parent
979d98ca
Consistently use uint64_t for int properties
I apparently failed to do this properly on the first attempt. Signed-off-by: Paul Brook <paul@codesourcery.com>
Showing
2 changed files
with
3 additions
and
3 deletions
hw/qdev.c
@@ -33,7 +33,7 @@ | @@ -33,7 +33,7 @@ | ||
33 | struct DeviceProperty { | 33 | struct DeviceProperty { |
34 | const char *name; | 34 | const char *name; |
35 | union { | 35 | union { |
36 | - int i; | 36 | + uint64_t i; |
37 | void *ptr; | 37 | void *ptr; |
38 | } value; | 38 | } value; |
39 | DeviceProperty *next; | 39 | DeviceProperty *next; |
@@ -120,7 +120,7 @@ static DeviceProperty *create_prop(DeviceState *dev, const char *name) | @@ -120,7 +120,7 @@ static DeviceProperty *create_prop(DeviceState *dev, const char *name) | ||
120 | return prop; | 120 | return prop; |
121 | } | 121 | } |
122 | 122 | ||
123 | -void qdev_set_prop_int(DeviceState *dev, const char *name, int value) | 123 | +void qdev_set_prop_int(DeviceState *dev, const char *name, uint64_t value) |
124 | { | 124 | { |
125 | DeviceProperty *prop; | 125 | DeviceProperty *prop; |
126 | 126 |
hw/qdev.h
@@ -33,7 +33,7 @@ DeviceState *qdev_create(void *bus, const char *name); | @@ -33,7 +33,7 @@ DeviceState *qdev_create(void *bus, const char *name); | ||
33 | void qdev_init(DeviceState *dev); | 33 | void qdev_init(DeviceState *dev); |
34 | 34 | ||
35 | /* Set properties between creation and init. */ | 35 | /* Set properties between creation and init. */ |
36 | -void qdev_set_prop_int(DeviceState *dev, const char *name, int value); | 36 | +void qdev_set_prop_int(DeviceState *dev, const char *name, uint64_t value); |
37 | void qdev_set_prop_ptr(DeviceState *dev, const char *name, void *value); | 37 | void qdev_set_prop_ptr(DeviceState *dev, const char *name, void *value); |
38 | void qdev_set_netdev(DeviceState *dev, NICInfo *nd); | 38 | void qdev_set_netdev(DeviceState *dev, NICInfo *nd); |
39 | 39 |