aboutsummaryrefslogtreecommitdiff
path: root/src/unix.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/unix.c')
-rw-r--r--src/unix.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/unix.c b/src/unix.c
index 0430086..a309823 100644
--- a/src/unix.c
+++ b/src/unix.c
@@ -63,10 +63,10 @@ static luaL_reg un[] = {
63}; 63};
64 64
65/* socket option handlers */ 65/* socket option handlers */
66static t_opt opt[] = { 66static t_opt optset[] = {
67 {"keepalive", opt_keepalive}, 67 {"keepalive", opt_set_keepalive},
68 {"reuseaddr", opt_reuseaddr}, 68 {"reuseaddr", opt_set_reuseaddr},
69 {"linger", opt_linger}, 69 {"linger", opt_set_linger},
70 {NULL, NULL} 70 {NULL, NULL}
71}; 71};
72 72
@@ -128,7 +128,7 @@ static int meth_setstats(lua_State *L) {
128\*-------------------------------------------------------------------------*/ 128\*-------------------------------------------------------------------------*/
129static int meth_setoption(lua_State *L) { 129static int meth_setoption(lua_State *L) {
130 p_unix un = (p_unix) auxiliar_checkgroup(L, "unix{any}", 1); 130 p_unix un = (p_unix) auxiliar_checkgroup(L, "unix{any}", 1);
131 return opt_meth_setoption(L, opt, &un->sock); 131 return opt_meth_setoption(L, optset, &un->sock);
132} 132}
133 133
134/*-------------------------------------------------------------------------*\ 134/*-------------------------------------------------------------------------*\