diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2008-06-23 20:32:50 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2008-06-23 20:32:50 +0000 |
commit | 3afe44acbfd77c69834bd183ac8ec6dd471056be (patch) | |
tree | 3c0620a0926632afd7e74b09e560b50935d0db09 /util.c | |
parent | cccc4a85597ab3907d7f24371869a57c386533fa (diff) |
Rename a variable to avoid collisions with a global variable, as noted
by John Smith.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25548 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -48,7 +48,7 @@ * separated by spaces. */ char * -get_args_as_string(int argc, char **argv, int optind) +get_args_as_string(int argc, char **argv, int optindex) { int len; int i; @@ -58,7 +58,7 @@ get_args_as_string(int argc, char **argv, int optind) * Find out how long the string will be. */ len = 0; - for (i = optind; i < argc; i++) { + for (i = optindex; i < argc; i++) { len += strlen(argv[i]); len++; /* space, or '\0' if this is the last argument */ } @@ -72,7 +72,7 @@ get_args_as_string(int argc, char **argv, int optind) * Now construct the string. */ argstring[0] = '\0'; - i = optind; + i = optindex; for (;;) { g_strlcat(argstring, argv[i], len); i++; |