Get rid of -Wshadow warning - I guess we're including something that
[metze/wireshark/wip.git] / ui / cli / tap-mgcpstat.c
index 9ea2129fa9e3cd6d6f101c9250a139be5dcbb8e4..d901bbd0e9e7ce918b374af94046aa2bed25a750 100644 (file)
@@ -32,7 +32,7 @@
 #include <epan/stat_cmd_args.h>
 #include "epan/value_string.h"
 #include "epan/dissectors/packet-mgcp.h"
-#include "wsutil/timestats.h"
+#include "epan/timestats.h"
 
 #define NUM_TIMESTATS 11
 
@@ -169,15 +169,15 @@ mgcpstat_draw(void *pms)
 
 
 static void
-mgcpstat_init(const char *optarg, void* userdata _U_)
+mgcpstat_init(const char *opt_arg, void* userdata _U_)
 {
        mgcpstat_t *ms;
        int i;
        GString *error_string;
 
        ms=g_new(mgcpstat_t,1);
-       if(!strncmp(optarg,"mgcp,rtd,",9)){
-               ms->filter=g_strdup(optarg+9);
+       if(!strncmp(opt_arg,"mgcp,rtd,",9)){
+               ms->filter=g_strdup(opt_arg+9);
        } else {
                ms->filter=NULL;
        }