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