get rid of an unused variable.
authorlego <lego@f5534014-38df-0310-8fa8-9805f1628bb7>
Sat, 23 Dec 2006 03:53:13 +0000 (03:53 +0000)
committerlego <lego@f5534014-38df-0310-8fa8-9805f1628bb7>
Sat, 23 Dec 2006 03:53:13 +0000 (03:53 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@20208 f5534014-38df-0310-8fa8-9805f1628bb7

epan/wslua/wslua_listener.c

index 3e33d99e92a483a6b139e047527ab69bbce7411e..ddeeaaf1a1894c95368481a32f679c2539a4f5e7 100644 (file)
@@ -81,7 +81,6 @@ int tap_packet_cb_error_handler(lua_State* L) {
 int lua_tap_packet(void *tapdata, packet_info *pinfo, epan_dissect_t *edt, const void *data) {
     Listener tap = tapdata;
     int retval = 0;
-       int top;
        
     if (tap->packet_ref == LUA_NOREF) return 0;
 
@@ -105,8 +104,6 @@ int lua_tap_packet(void *tapdata, packet_info *pinfo, epan_dissect_t *edt, const
        lua_tree->tree = edt->tree;
        lua_tree->item = NULL;
     
-       top = lua_gettop(tap->L);
-       
     switch ( lua_pcall(tap->L,3,1,1) ) {
         case 0:
                        retval = luaL_optint(tap->L,-1,1);