Get rid of -Wshadow warning - I guess we're including something that
[metze/wireshark/wip.git] / ui / cli / tap-wspstat.c
index 165f78d0c83964db5ad8ae03ccf59c48d122f7b8..0bf539ea9caf7f6d57bd048ff539cd1f4effa350 100644 (file)
@@ -207,7 +207,7 @@ wspstat_draw(void *psp)
  * new instance for the wsp tap.
  */
 static void
-wspstat_init(const char *optarg, void* userdata _U_)
+wspstat_init(const char *opt_arg, void* userdata _U_)
 {
        wspstat_t          *sp;
        const char         *filter=NULL;
@@ -216,8 +216,8 @@ wspstat_init(const char *optarg, void* userdata _U_)
        wsp_status_code_t  *sc;
        const value_string *wsp_vals_status_p;
 
-       if (!strncmp (optarg, "wsp,stat," , 9)){
-               filter=optarg+9;
+       if (!strncmp (opt_arg, "wsp,stat," , 9)){
+               filter=opt_arg+9;
        } else {
                filter=NULL;
        }