diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2011-11-01 09:47:01 +0000 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2011-11-01 09:47:01 +0000 |
commit | b4da051d54a1597c7d8db8880d21a52265a6172e (patch) | |
tree | 9d51b1f99f99c10105b32dbcb5ebf3f5c05825de /fish/inspect.c | |
parent | 4e3a1205ebfec1a5cbc3062d6f73a684090e80b5 (diff) | |
download | libguestfs-b4da051d54a1597c7d8db8880d21a52265a6172e.tar.gz libguestfs-b4da051d54a1597c7d8db8880d21a52265a6172e.tar.xz libguestfs-b4da051d54a1597c7d8db8880d21a52265a6172e.zip |
fish: Use size_t instead of int when counting strings.
Diffstat (limited to 'fish/inspect.c')
-rw-r--r-- | fish/inspect.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fish/inspect.c b/fish/inspect.c index 2ca54d22..0b82ade5 100644 --- a/fish/inspect.c +++ b/fish/inspect.c @@ -43,14 +43,14 @@ free_strings (char **argv) free (argv); } -static int +static size_t count_strings (char *const *argv) { - int c; + size_t i; - for (c = 0; argv[c]; ++c) + for (i = 0; argv[i]; ++i) ; - return c; + return i; } static int |