aboutsummaryrefslogtreecommitdiff
path: root/src/shared/lua_api/load_net.cpp
diff options
context:
space:
mode:
authorAlexander Pickering <alex@cogarr.net>2018-06-30 16:15:05 -0600
committerAlexander Pickering <alex@cogarr.net>2018-06-30 16:15:05 -0600
commited58795eaf03bdee0b1fae8d05ce5b86d17549f7 (patch)
tree065092f3e95bf74fdba541f6c5f7504757487d3d /src/shared/lua_api/load_net.cpp
parent45e61c74802af739736d33c82f27596b45987eee (diff)
downloadbrokengine-ed58795eaf03bdee0b1fae8d05ce5b86d17549f7.tar.gz
brokengine-ed58795eaf03bdee0b1fae8d05ce5b86d17549f7.tar.bz2
brokengine-ed58795eaf03bdee0b1fae8d05ce5b86d17549f7.zip
Warning-less build
All compile warning for -Wall have been fixed
Diffstat (limited to 'src/shared/lua_api/load_net.cpp')
-rw-r--r--src/shared/lua_api/load_net.cpp6
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){