git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
generator.ml: avoid signed/unsigned-comparison warning in fish/cmds.c
[libguestfs.git]
/
src
/
generator.ml
diff --git
a/src/generator.ml
b/src/generator.ml
index
de7a75f
..
46fcf2c
100755
(executable)
--- a/
src/generator.ml
+++ b/
src/generator.ml
@@
-1669,7
+1669,7
@@
This is the same as the C<lstat(2)> system call.");
("statvfs", (RStruct ("statbuf", "statvfs"), [Pathname "path"]), 54, [],
[InitISOFS, Always, TestOutputStruct (
("statvfs", (RStruct ("statbuf", "statvfs"), [Pathname "path"]), 54, [],
[InitISOFS, Always, TestOutputStruct (
- [["statvfs"; "/"]], [CompareWithInt ("namemax", 25
6
)])],
+ [["statvfs"; "/"]], [CompareWithInt ("namemax", 25
5
)])],
"get file system statistics",
"\
Returns file system statistics for any mounted file system.
"get file system statistics",
"\
Returns file system statistics for any mounted file system.
@@
-6109,7
+6109,7
@@
and generate_fish_cmds () =
pr "static void print_%s_list (struct guestfs_%s_list *%ss)\n"
typ typ typ;
pr "{\n";
pr "static void print_%s_list (struct guestfs_%s_list *%ss)\n"
typ typ typ;
pr "{\n";
- pr " int i;\n";
+ pr "
unsigned
int i;\n";
pr "\n";
pr " for (i = 0; i < %ss->len; ++i) {\n" typ;
pr " printf (\"[%%d] = {\\n\", i);\n";
pr "\n";
pr " for (i = 0; i < %ss->len; ++i) {\n" typ;
pr " printf (\"[%%d] = {\\n\", i);\n";
@@
-6129,7
+6129,7
@@
and generate_fish_cmds () =
pr "static void print_%s_indent (struct guestfs_%s *%s, const char *indent)\n" typ typ typ;
pr "{\n";
if needs_i then (
pr "static void print_%s_indent (struct guestfs_%s *%s, const char *indent)\n" typ typ typ;
pr "{\n";
if needs_i then (
- pr " int i;\n";
+ pr "
unsigned
int i;\n";
pr "\n"
);
List.iter (
pr "\n"
);
List.iter (