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-h225counter.c | |
parent | 9e47411488cf2101b79dfe1bb715e7c1eafcfa83 (diff) | |
download | wireshark-ab3aeb63e4ffd9ee84ea0f387c1d64838f38ef44.tar.gz |
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-h225counter.c')
-rw-r--r-- | ui/cli/tap-h225counter.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/cli/tap-h225counter.c b/ui/cli/tap-h225counter.c index fe1a8141fc..e84d9df4f1 100644 --- a/ui/cli/tap-h225counter.c +++ b/ui/cli/tap-h225counter.c @@ -343,14 +343,14 @@ h225counter_draw(void *phs) static void -h225counter_init(const char *optarg, void* userdata _U_) +h225counter_init(const char *opt_arg, void* userdata _U_) { h225counter_t *hs; GString *error_string; hs = g_new(h225counter_t,1); - if(!strncmp(optarg,"h225,counter,",13)){ - hs->filter=g_strdup(optarg+13); + if(!strncmp(opt_arg,"h225,counter,",13)){ + hs->filter=g_strdup(opt_arg+13); } else { hs->filter=NULL; } |