diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2010-10-21 10:50:25 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2010-10-21 10:50:25 +0100 |
commit | 6391d1a7cfa10337a75465c72d49df3c9ebc65ca (patch) | |
tree | 84072813ae8e8790cc42c02fcb71cd04e2a1bc5d /fish/glob.c | |
parent | fcd75e021a12fbd93c4d51fbca7844fdb4f7436f (diff) | |
download | libguestfs-6391d1a7cfa10337a75465c72d49df3c9ebc65ca.tar.gz libguestfs-6391d1a7cfa10337a75465c72d49df3c9ebc65ca.tar.xz libguestfs-6391d1a7cfa10337a75465c72d49df3c9ebc65ca.zip |
fish: Change 'int argc' to 'size_t argc' throughout.
Diffstat (limited to 'fish/glob.c')
-rw-r--r-- | fish/glob.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/fish/glob.c b/fish/glob.c index e17a9adc..509532b8 100644 --- a/fish/glob.c +++ b/fish/glob.c @@ -28,10 +28,10 @@ /* A bit tricky because in the case where there are multiple * paths we have to perform a Cartesian product. */ -static void glob_issue (char *cmd, int argc, char ***globs, int *posn, int *count, int *r); +static void glob_issue (char *cmd, size_t argc, char ***globs, int *posn, int *count, int *r); int -run_glob (const char *cmd, int argc, char *argv[]) +run_glob (const char *cmd, size_t argc, char *argv[]) { /* For 'glob cmd foo /s* /usr/s*' this could be: * @@ -46,7 +46,8 @@ run_glob (const char *cmd, int argc, char *argv[]) char **globs[argc]; int posn[argc]; int count[argc]; - int i, r = 0; + size_t i; + int r = 0; if (argc < 1) { fprintf (stderr, _("use 'glob command [args...]'\n")); @@ -129,11 +130,11 @@ run_glob (const char *cmd, int argc, char *argv[]) } static void -glob_issue (char *cmd, int argc, +glob_issue (char *cmd, size_t argc, char ***globs, int *posn, int *count, int *r) { - int i; + size_t i; char *argv[argc+1]; argv[0] = cmd; |