aboutsummaryrefslogtreecommitdiffstats
path: root/ui/cli/tap-bootpstat.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-bootpstat.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-bootpstat.c')
-rw-r--r--ui/cli/tap-bootpstat.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/cli/tap-bootpstat.c b/ui/cli/tap-bootpstat.c
index 2bdb2f3cd5..736381a582 100644
--- a/ui/cli/tap-bootpstat.c
+++ b/ui/cli/tap-bootpstat.c
@@ -134,14 +134,14 @@ dhcpstat_draw(void *psp)
/* When called, this function will create a new instance of tap-boopstat.
*/
static void
-dhcpstat_init(const char *optarg, void* userdata _U_)
+dhcpstat_init(const char *opt_arg, void* userdata _U_)
{
dhcpstat_t *sp;
const char *filter=NULL;
GString *error_string;
- if (!strncmp (optarg, "bootp,stat,", 11)){
- filter=optarg+11;
+ if (!strncmp (opt_arg, "bootp,stat,", 11)){
+ filter=opt_arg+11;
} else {
filter=NULL;
}