diff options
author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2009-05-27 09:31:38 +0000 |
---|---|---|
committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2009-05-27 09:31:38 +0000 |
commit | bce60be30fe8e9c1b0eb33128c23c93d7bca5303 (patch) | |
tree | 3927343c777fcb7764a0f2f89754a0ceab141c21 /src/unix.c | |
parent | d1a72435d5bd3528f3c334cd4d1da16dcead47bf (diff) | |
download | luasocket-bce60be30fe8e9c1b0eb33128c23c93d7bca5303.tar.gz luasocket-bce60be30fe8e9c1b0eb33128c23c93d7bca5303.tar.bz2 luasocket-bce60be30fe8e9c1b0eb33128c23c93d7bca5303.zip |
Decent makefiles!
Diffstat (limited to 'src/unix.c')
-rw-r--r-- | src/unix.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -63,10 +63,10 @@ static luaL_reg un[] = { | |||
63 | }; | 63 | }; |
64 | 64 | ||
65 | /* socket option handlers */ | 65 | /* socket option handlers */ |
66 | static t_opt opt[] = { | 66 | static 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 | \*-------------------------------------------------------------------------*/ |
129 | static int meth_setoption(lua_State *L) { | 129 | static 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 | /*-------------------------------------------------------------------------*\ |