From: Avi Kivity <[email protected]>

We can't rely on __u64 being defined.

Signed-off-by: Avi Kivity <[email protected]>

diff --git a/savevm.c b/savevm.c
index e22c981..1915caf 100644
--- a/savevm.c
+++ b/savevm.c
@@ -856,15 +856,15 @@ const VMStateInfo vmstate_info_uint64 = {
 #ifdef __linux__
 static int get_u64(QEMUFile *f, void *pv, size_t size)
 {
-    __u64 *v = pv;
-    qemu_get_be64s(f, (uint64_t *)v);
+    uint64_t *v = pv;
+    qemu_get_be64s(f, v);
     return 0;
 }
 
 static void put_u64(QEMUFile *f, void *pv, size_t size)
 {
-    __u64 *v = pv;
-    qemu_put_be64s(f, (uint64_t *)v);
+    uint64_t *v = pv;
+    qemu_put_be64s(f, v);
 }
 
 const VMStateInfo vmstate_info_u64 = {
--
To unsubscribe from this list: send the line "unsubscribe kvm-commits" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to