git.annexia.org
/
libguestfs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0fc0e4b
)
ocaml/guestfs_c.c avoid signed/unsigned-comparison warning
author
Jim Meyering
<meyering@redhat.com>
Thu, 27 Aug 2009 10:34:38 +0000
(12:34 +0200)
committer
Jim Meyering
<meyering@redhat.com>
Thu, 27 Aug 2009 11:23:52 +0000
(13:23 +0200)
* ocaml/guestfs_c.c (ocaml_guestfs_strings_val): Declare index as
unsigned int.
ocaml/guestfs_c.c
patch
|
blob
|
history
diff --git
a/ocaml/guestfs_c.c
b/ocaml/guestfs_c.c
index
f983696
..
9a7454d
100644
(file)
--- a/
ocaml/guestfs_c.c
+++ b/
ocaml/guestfs_c.c
@@
-131,7
+131,7
@@
ocaml_guestfs_strings_val (guestfs_h *g, value sv)
{
CAMLparam1 (sv);
char **r;
- int i;
+
unsigned
int i;
r = guestfs_safe_malloc (g, sizeof (char *) * (Wosize_val (sv) + 1));
for (i = 0; i < Wosize_val (sv); ++i)