Blame SOURCES/0001-Use-C99-standard-int64_t-instead-of-OCaml-defined-an.patch

ca920e
From 21ac993da0a187821e812fe7b5b31a426121a546 Mon Sep 17 00:00:00 2001
ca920e
From: "Richard W.M. Jones" <rjones@redhat.com>
ca920e
Date: Sat, 30 Aug 2014 19:10:19 +0100
ca920e
Subject: [PATCH] Use C99 standard int64_t instead of OCaml defined (and soon
ca920e
 to go) int64.
ca920e
ca920e
---
ca920e
 libvirt/libvirt_c_oneoffs.c | 4 ++--
ca920e
 1 file changed, 2 insertions(+), 2 deletions(-)
ca920e
ca920e
diff --git a/libvirt/libvirt_c_oneoffs.c b/libvirt/libvirt_c_oneoffs.c
ca920e
index 3bb572f..06b3852 100644
ca920e
--- a/libvirt/libvirt_c_oneoffs.c
ca920e
+++ b/libvirt/libvirt_c_oneoffs.c
ca920e
@@ -140,7 +140,7 @@ ocaml_libvirt_connect_node_get_free_memory (value connv)
ca920e
   NONBLOCKING (r = virNodeGetFreeMemory (conn));
ca920e
   CHECK_ERROR (r == 0, conn, "virNodeGetFreeMemory");
ca920e
 
ca920e
-  rv = caml_copy_int64 ((int64) r);
ca920e
+  rv = caml_copy_int64 ((int64_t) r);
ca920e
   CAMLreturn (rv);
ca920e
 }
ca920e
 
ca920e
@@ -161,7 +161,7 @@ ocaml_libvirt_connect_node_get_cells_free_memory (value connv,
ca920e
 
ca920e
   rv = caml_alloc (r, 0);
ca920e
   for (i = 0; i < r; ++i) {
ca920e
-    iv = caml_copy_int64 ((int64) freemems[i]);
ca920e
+    iv = caml_copy_int64 ((int64_t) freemems[i]);
ca920e
     Store_field (rv, i, iv);
ca920e
   }
ca920e
 
ca920e
-- 
ca920e
2.0.4
ca920e