aboutsummaryrefslogtreecommitdiff
path: root/src/unix.c
diff options
context:
space:
mode:
authorDiego Nehab <diego@tecgraf.puc-rio.br>2009-05-27 09:31:38 +0000
committerDiego Nehab <diego@tecgraf.puc-rio.br>2009-05-27 09:31:38 +0000
commitbce60be30fe8e9c1b0eb33128c23c93d7bca5303 (patch)
tree3927343c777fcb7764a0f2f89754a0ceab141c21 /src/unix.c
parentd1a72435d5bd3528f3c334cd4d1da16dcead47bf (diff)
downloadluasocket-bce60be30fe8e9c1b0eb33128c23c93d7bca5303.tar.gz
luasocket-bce60be30fe8e9c1b0eb33128c23c93d7bca5303.tar.bz2
luasocket-bce60be30fe8e9c1b0eb33128c23c93d7bca5303.zip
Decent makefiles!
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/*-------------------------------------------------------------------------*\