diff options
author | Guy Harris <guy@alum.mit.edu> | 2013-08-14 01:18:58 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2013-08-14 01:18:58 +0000 |
commit | ab3aeb63e4ffd9ee84ea0f387c1d64838f38ef44 (patch) | |
tree | 59ac62874622df5a12c4a33f62d4322a825dbda7 /ui/cli/tap-hosts.c | |
parent | 9e47411488cf2101b79dfe1bb715e7c1eafcfa83 (diff) |
Get rid of -Wshadow warning - I guess we're including something that
gets <getopt.h>, so we get the optarg global.
svn path=/trunk/; revision=51350
Diffstat (limited to 'ui/cli/tap-hosts.c')
-rw-r--r-- | ui/cli/tap-hosts.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/cli/tap-hosts.c b/ui/cli/tap-hosts.c index 5e397feb15..ba8723bf10 100644 --- a/ui/cli/tap-hosts.c +++ b/ui/cli/tap-hosts.c @@ -128,7 +128,7 @@ hosts_draw(void *dummy _U_) static void -hosts_init(const char *optarg, void* userdata _U_) +hosts_init(const char *opt_arg, void* userdata _U_) { GString *error_string; gchar **tokens; @@ -137,12 +137,12 @@ hosts_init(const char *optarg, void* userdata _U_) dump_v4 = FALSE; dump_v6 = FALSE; - if(strcmp(TAP_NAME, optarg)==0) { + if(strcmp(TAP_NAME, opt_arg)==0) { /* No arguments; dump everything */ dump_v4 = TRUE; dump_v6 = TRUE; } else { - tokens = g_strsplit(optarg,",", 0); + tokens = g_strsplit(opt_arg,",", 0); opt_count=0; while (tokens[opt_count]) { if (strcmp("ipv4", tokens[opt_count]) == 0) { |