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