diff options
author | Paul Brook <paul@codesourcery.com> | 2009-05-17 14:55:55 +0100 |
---|---|---|
committer | Paul Brook <paul@codesourcery.com> | 2009-05-17 14:55:55 +0100 |
commit | 89a740e16cee362318bfd40a88616336bce87e2e (patch) | |
tree | 52da06d462bc6f69667b172bb722dfd35485a1cc /hw | |
parent | 979d98ca904bcad59f83908a540fa3a8ce56982d (diff) | |
download | qemu-89a740e16cee362318bfd40a88616336bce87e2e.zip qemu-89a740e16cee362318bfd40a88616336bce87e2e.tar.gz qemu-89a740e16cee362318bfd40a88616336bce87e2e.tar.bz2 |
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>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/qdev.c | 4 | ||||
-rw-r--r-- | hw/qdev.h | 2 |
2 files changed, 3 insertions, 3 deletions
@@ -33,7 +33,7 @@ struct DeviceProperty { const char *name; union { - int i; + uint64_t i; void *ptr; } value; DeviceProperty *next; @@ -120,7 +120,7 @@ static DeviceProperty *create_prop(DeviceState *dev, const char *name) return prop; } -void qdev_set_prop_int(DeviceState *dev, const char *name, int value) +void qdev_set_prop_int(DeviceState *dev, const char *name, uint64_t value) { DeviceProperty *prop; @@ -33,7 +33,7 @@ DeviceState *qdev_create(void *bus, const char *name); void qdev_init(DeviceState *dev); /* Set properties between creation and init. */ -void qdev_set_prop_int(DeviceState *dev, const char *name, int value); +void qdev_set_prop_int(DeviceState *dev, const char *name, uint64_t value); void qdev_set_prop_ptr(DeviceState *dev, const char *name, void *value); void qdev_set_netdev(DeviceState *dev, NICInfo *nd); |