From: Jim Meyering Date: Fri, 21 Aug 2009 12:58:20 +0000 (+0200) Subject: fish.c: avoid signed/unsigned-comparison warning X-Git-Tag: 1.0.69~43 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=fbd7db94066d45df7eb980234fee8603c427daa9;p=libguestfs.git fish.c: avoid signed/unsigned-comparison warning * fish/fish.c (script): Change type of index to "unsigned int". --- diff --git a/fish/fish.c b/fish/fish.c index 9de8e07..fbac519 100644 --- a/fish/fish.c +++ b/fish/fish.c @@ -517,7 +517,7 @@ script (int prompt) char *cmd; char *p, *pend; char *argv[64]; - int i, len; + int len; int global_exit_on_error = !prompt; int tilde_candidate; @@ -581,7 +581,7 @@ script (int prompt) if (len == 0) continue; cmd = buf; - i = 0; + unsigned int i = 0; if (buf[len] == '\0') { argv[0] = NULL; goto got_command;