Get rid of -Wshadow warning - I guess we're including something that
[metze/wireshark/wip.git] / ui / cli / tap-scsistat.c
index c479f8dc2783ef3ddc19fe17e7b266d01b0f4e9a..31a2cff8a3a8837065a372536ea0d002ff7c2b0c 100644 (file)
@@ -168,7 +168,7 @@ scsistat_draw(void *prs)
 }
 
 static void
-scsistat_init(const char *optarg, void* userdata _U_)
+scsistat_init(const char *opt_arg, void* userdata _U_)
 {
        scsistat_t *rs;
        guint32 i;
@@ -177,9 +177,9 @@ scsistat_init(const char *optarg, void* userdata _U_)
        GString *error_string;
 
        pos=0;
-       if(sscanf(optarg, "scsi,srt,%d,%n", &program, &pos)==1) {
+       if(sscanf(opt_arg, "scsi,srt,%d,%n", &program, &pos)==1) {
                if(pos) {
-                       filter=optarg+pos;
+                       filter=opt_arg+pos;
                } else {
                        filter=NULL;
                }