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

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