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-macltestat.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-macltestat.c')
-rw-r--r-- | ui/cli/tap-macltestat.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/cli/tap-macltestat.c b/ui/cli/tap-macltestat.c index d6f0ccd477..c841d0a590 100644 --- a/ui/cli/tap-macltestat.c +++ b/ui/cli/tap-macltestat.c @@ -508,16 +508,16 @@ mac_lte_stat_draw(void *phs) } /* Create a new MAC LTE stats struct */ -static void mac_lte_stat_init(const char *optarg, void *userdata _U_) +static void mac_lte_stat_init(const char *opt_arg, void *userdata _U_) { mac_lte_stat_t *hs; const char *filter = NULL; GString *error_string; /* Check for a filter string */ - if (strncmp(optarg, "mac-lte,stat,", 13) == 0) { + if (strncmp(opt_arg, "mac-lte,stat,", 13) == 0) { /* Skip those characters from filter to display */ - filter = optarg + 13; + filter = opt_arg + 13; } else { /* No filter */ |