Get rid of -Wshadow warning - I guess we're including something that
[metze/wireshark/wip.git] / ui / cli / tap-hosts.c
index 5e397feb1519aca6c283f797e0d38ccc57106f89..ba8723bf1058b1250bc57efa4eefde759d868d50 100644 (file)
@@ -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) {