diff options
author | Jim Meyering <meyering@redhat.com> | 2009-08-21 15:04:32 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2009-08-21 15:24:25 +0200 |
commit | 33687dfaa00658a602180f3afcebe9552804a048 (patch) | |
tree | 8d25251bef765f6a2f6d99eb9d7b916525145878 /src | |
parent | fad78c609423fe10139b468ec229c3d6792718e2 (diff) | |
download | libguestfs-33687dfaa00658a602180f3afcebe9552804a048.tar.gz libguestfs-33687dfaa00658a602180f3afcebe9552804a048.tar.xz libguestfs-33687dfaa00658a602180f3afcebe9552804a048.zip |
generator.ml: avoid signed/unsigned-comparison warning in fish/cmds.c
* src/generator.ml (emit_print_list_function): Emit code that doesn't
evoke warnings. s/int/unsigned int/
(emit print_*_indent): Likewise, s/int/unsigned int/
Diffstat (limited to 'src')
-rwxr-xr-x | src/generator.ml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/generator.ml b/src/generator.ml index a371ffd0..46fcf2cc 100755 --- a/src/generator.ml +++ b/src/generator.ml @@ -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 " 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"; @@ -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 " int i;\n"; + pr " unsigned int i;\n"; pr "\n" ); List.iter ( |