Get rid of -Wshadow warning - I guess we're including something that
[metze/wireshark/wip.git] / ui / cli / tap-protocolinfo.c
index 7324b6893220abec3eef45fe0bd930e18dbad6d3..6138f34e50ebbb64fcb4ee634adad9624af6ca33 100644 (file)
@@ -81,7 +81,7 @@ protocolinfo_packet(void *prs, packet_info *pinfo, epan_dissect_t *edt, const vo
 
 
 static void
-protocolinfo_init(const char *optarg, void* userdata _U_)
+protocolinfo_init(const char *opt_arg, void* userdata _U_)
 {
        pci_t *rs;
        const char *field=NULL;
@@ -89,8 +89,8 @@ protocolinfo_init(const char *optarg, void* userdata _U_)
        header_field_info *hfi;
        GString *error_string;
 
-       if(!strncmp("proto,colinfo,",optarg,14)){
-               filter=optarg+14;
+       if(!strncmp("proto,colinfo,",opt_arg,14)){
+               filter=opt_arg+14;
                field=strchr(filter,',');
                if(field){
                        field+=1;  /* skip the ',' */