aboutsummaryrefslogtreecommitdiffstats
path: root/epan/wslua/wslua_util.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2013-08-14 00:35:27 +0000
committerGuy Harris <guy@alum.mit.edu>2013-08-14 00:35:27 +0000
commit5dcd6daba75bb8d13dfbeabe2da8ec2c61447ce7 (patch)
treed8a3037923b285346749335b9cddcc465442589a /epan/wslua/wslua_util.c
parent14fe8951b76af229c9230a570276676e20683e70 (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=51346
Diffstat (limited to 'epan/wslua/wslua_util.c')
-rw-r--r--epan/wslua/wslua_util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/wslua/wslua_util.c b/epan/wslua/wslua_util.c
index 6465a3882a..50d3e04f58 100644
--- a/epan/wslua/wslua_util.c
+++ b/epan/wslua/wslua_util.c
@@ -413,7 +413,7 @@ static int statcmd_init_cb_error_handler(lua_State* L _U_) {
return 0;
}
-static void statcmd_init(const char *optarg, void* userdata) {
+static void statcmd_init(const char *opt_arg, void* userdata) {
statcmd_t* sc = (statcmd_t *)userdata;
lua_State* L = sc->L;
@@ -421,7 +421,7 @@ static void statcmd_init(const char *optarg, void* userdata) {
lua_pushcfunction(L,statcmd_init_cb_error_handler);
lua_rawgeti(L, LUA_REGISTRYINDEX, sc->func_ref);
- lua_pushstring(L,optarg);
+ lua_pushstring(L,opt_arg);
switch ( lua_pcall(L,1,0,1) ) {
case 0: