summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fish/inspect.c8
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