From: Paul Brook Date: Sun, 17 May 2009 13:55:55 +0000 (+0100) Subject: Consistently use uint64_t for int properties X-Git-Tag: v0.11.0-rc0~582 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=89a740e16cee362318bfd40a88616336bce87e2e;p=thirdparty%2Fqemu.git Consistently use uint64_t for int properties I apparently failed to do this properly on the first attempt. Signed-off-by: Paul Brook --- diff --git a/hw/qdev.c b/hw/qdev.c index a8de27841ba..9ed6f85cc42 100644 --- a/hw/qdev.c +++ b/hw/qdev.c @@ -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; diff --git a/hw/qdev.h b/hw/qdev.h index 210062a0afa..5a34f510389 100644 --- a/hw/qdev.h +++ b/hw/qdev.h @@ -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);