aboutsummaryrefslogtreecommitdiffstats
path: root/ui/cli/tap-protohierstat.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2013-08-14 01:18:58 +0000
committerGuy Harris <guy@alum.mit.edu>2013-08-14 01:18:58 +0000
commitab3aeb63e4ffd9ee84ea0f387c1d64838f38ef44 (patch)
tree59ac62874622df5a12c4a33f62d4322a825dbda7 /ui/cli/tap-protohierstat.c
parent9e47411488cf2101b79dfe1bb715e7c1eafcfa83 (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.c8
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");