diff options
author | Guy Harris <guy@alum.mit.edu> | 2013-08-14 00:41:02 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2013-08-14 00:41:02 +0000 |
commit | 34108edbd1114139798b722f2d354ae0e214af56 (patch) | |
tree | 4aa676d4104b597e4f1b3ae52d33a17505c0b427 /epan/stats_tree.c | |
parent | b65e9e96189f8e06a45ede91dd6f1fc135518da4 (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=51348
Diffstat (limited to 'epan/stats_tree.c')
-rw-r--r-- | epan/stats_tree.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/epan/stats_tree.c b/epan/stats_tree.c index 59e85cd893..ec0e190a91 100644 --- a/epan/stats_tree.c +++ b/epan/stats_tree.c @@ -573,18 +573,18 @@ stats_tree_manip_node(manip_node_mode mode, stats_tree *st, const char *name, extern char* -stats_tree_get_abbr(const char *optarg) +stats_tree_get_abbr(const char *opt_arg) { guint i; /* XXX: this fails when tshark is given any options after the -z */ - g_assert(optarg != NULL); + g_assert(opt_arg != NULL); - for (i=0; optarg[i] && optarg[i] != ','; i++); + for (i=0; opt_arg[i] && opt_arg[i] != ','; i++); - if (optarg[i] == ',') { - return g_strndup(optarg,i); + if (opt_arg[i] == ',') { + return g_strndup(opt_arg,i); } else { return NULL; } |