aboutsummaryrefslogtreecommitdiff
path: root/src/tcp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tcp.c')
-rw-r--r--src/tcp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tcp.c b/src/tcp.c
index 21aa7f5..5505848 100644
--- a/src/tcp.c
+++ b/src/tcp.c
@@ -153,7 +153,7 @@ static int opt_keepalive(lua_State *L)
153 return opt_boolean(L, SOL_SOCKET, SO_KEEPALIVE); 153 return opt_boolean(L, SOL_SOCKET, SO_KEEPALIVE);
154} 154}
155 155
156int opt_linger(lua_State *L) 156static int opt_linger(lua_State *L)
157{ 157{
158 p_tcp tcp = (p_tcp) aux_checkclass(L, "tcp{client}", 1); 158 p_tcp tcp = (p_tcp) aux_checkclass(L, "tcp{client}", 1);
159 struct linger li; 159 struct linger li;
@@ -334,7 +334,7 @@ static int meth_settimeout(lua_State *L)
334/*-------------------------------------------------------------------------*\ 334/*-------------------------------------------------------------------------*\
335* Creates a master tcp object 335* Creates a master tcp object
336\*-------------------------------------------------------------------------*/ 336\*-------------------------------------------------------------------------*/
337int global_create(lua_State *L) 337static int global_create(lua_State *L)
338{ 338{
339 t_sock sock; 339 t_sock sock;
340 const char *err = inet_trycreate(&sock, SOCK_STREAM); 340 const char *err = inet_trycreate(&sock, SOCK_STREAM);