mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
fish.c: avoid signed/unsigned-comparison warning
* fish/fish.c (script): Change type of index to "unsigned int".
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user