diff options
Diffstat (limited to 'src/shared/lua_api/load_net.cpp')
| -rw-r--r-- | src/shared/lua_api/load_net.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/shared/lua_api/load_net.cpp b/src/shared/lua_api/load_net.cpp index 740d997..6fe8525 100644 --- a/src/shared/lua_api/load_net.cpp +++ b/src/shared/lua_api/load_net.cpp @@ -166,7 +166,7 @@ int send(lua_State* L){ //socket:receive(s_name,function(stream)) int netreceive(lua_State* L){ const char* name = lua_tostring(L,-2); - int slen = strlen(name); + //int slen = strlen(name); std::string s = std::string(name); int func = luaL_ref(L,LUA_REGISTRYINDEX); lua_pushstring(L,"fd"); @@ -178,8 +178,8 @@ int netreceive(lua_State* L){ } int socketFactory(lua_State*L){ - int domain = luaL_optint(L,-1,0); - int type = luaL_optint(L,-2,0); + //int domain = luaL_optint(L,-1,0); + //int type = luaL_optint(L,-2,0); int c = nn_socket(AF_SP,NN_PAIR); if(c < 0){ |
