diff options
author | Guy Harris <guy@alum.mit.edu> | 2013-08-14 01:18:58 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2013-08-14 01:18:58 +0000 |
commit | ab3aeb63e4ffd9ee84ea0f387c1d64838f38ef44 (patch) | |
tree | 59ac62874622df5a12c4a33f62d4322a825dbda7 /ui/cli/tap-protohierstat.c | |
parent | 9e47411488cf2101b79dfe1bb715e7c1eafcfa83 (diff) |
Get rid of -Wshadow warning - I guess we're including something that
gets <getopt.h>, so we get the optarg global.
svn path=/trunk/; revision=51350
Diffstat (limited to 'ui/cli/tap-protohierstat.c')
-rw-r--r-- | ui/cli/tap-protohierstat.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ui/cli/tap-protohierstat.c b/ui/cli/tap-protohierstat.c index e9308045fa..aa544f78fc 100644 --- a/ui/cli/tap-protohierstat.c +++ b/ui/cli/tap-protohierstat.c @@ -166,18 +166,18 @@ protohierstat_draw(void *prs) static void -protohierstat_init(const char *optarg, void* userdata _U_) +protohierstat_init(const char *opt_arg, void* userdata _U_) { phs_t *rs; int pos=0; const char *filter=NULL; GString *error_string; - if(strcmp("io,phs",optarg)==0){ + if(strcmp("io,phs",opt_arg)==0){ /* No arguments */ - } else if(sscanf(optarg,"io,phs,%n",&pos)==0){ + } else if(sscanf(opt_arg,"io,phs,%n",&pos)==0){ if(pos){ - filter=optarg+pos; + filter=opt_arg+pos; } } else { fprintf(stderr, "tshark: invalid \"-z io,phs[,<filter>]\" argument\n"); |