mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
fish: Use size_t instead of int when counting strings.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user