qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [COMMIT 89a740e] Consistently use uint64_t for int proper


From: Anthony Liguori
Subject: [Qemu-commits] [COMMIT 89a740e] Consistently use uint64_t for int properties
Date: Sun, 17 May 2009 13:59:23 -0000

From: Paul Brook <address@hidden>

I apparently failed to do this properly on the first attempt.

Signed-off-by: Paul Brook <address@hidden>

diff --git a/hw/qdev.c b/hw/qdev.c
index a8de278..9ed6f85 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 210062a..5a34f51 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);
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]