aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/makefile1
-rw-r--r--src/unixtcp.c3
-rw-r--r--src/unixudp.c3
3 files changed, 5 insertions, 2 deletions
diff --git a/src/makefile b/src/makefile
index 0e4a544..2ffd7d9 100644
--- a/src/makefile
+++ b/src/makefile
@@ -309,6 +309,7 @@ UNIX_OBJS=\
309 usocket.$(O) \ 309 usocket.$(O) \
310 unixtcp.$(O) \ 310 unixtcp.$(O) \
311 unixudp.$(O) \ 311 unixudp.$(O) \
312 compat.$(O) \
312 unix.$(O) 313 unix.$(O)
313 314
314#------ 315#------
diff --git a/src/unixtcp.c b/src/unixtcp.c
index 88baac0..a9c4962 100644
--- a/src/unixtcp.c
+++ b/src/unixtcp.c
@@ -6,6 +6,7 @@
6 6
7#include "lua.h" 7#include "lua.h"
8#include "lauxlib.h" 8#include "lauxlib.h"
9#include "compat.h"
9 10
10#include "auxiliar.h" 11#include "auxiliar.h"
11#include "socket.h" 12#include "socket.h"
@@ -90,7 +91,7 @@ int unixtcp_open(lua_State *L)
90 auxiliar_add2group(L, "unixtcp{server}", "unixtcp{any}"); 91 auxiliar_add2group(L, "unixtcp{server}", "unixtcp{any}");
91 92
92 luaL_setfuncs(L, func, 0); 93 luaL_setfuncs(L, func, 0);
93 return 1; 94 return 0;
94} 95}
95 96
96/*=========================================================================*\ 97/*=========================================================================*\
diff --git a/src/unixudp.c b/src/unixudp.c
index ec348cf..75f5b08 100644
--- a/src/unixudp.c
+++ b/src/unixudp.c
@@ -7,6 +7,7 @@
7 7
8#include "lua.h" 8#include "lua.h"
9#include "lauxlib.h" 9#include "lauxlib.h"
10#include "compat.h"
10 11
11#include "auxiliar.h" 12#include "auxiliar.h"
12#include "socket.h" 13#include "socket.h"
@@ -86,7 +87,7 @@ int unixudp_open(lua_State *L)
86 auxiliar_add2group(L, "unixudp{unconnected}", "select{able}"); 87 auxiliar_add2group(L, "unixudp{unconnected}", "select{able}");
87 88
88 luaL_setfuncs(L, func, 0); 89 luaL_setfuncs(L, func, 0);
89 return 1; 90 return 0;
90} 91}
91 92
92/*=========================================================================*\ 93/*=========================================================================*\