diff options
Diffstat (limited to 'src/luasocket.c')
-rw-r--r-- | src/luasocket.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/luasocket.c b/src/luasocket.c index 434b5b7..142aa95 100644 --- a/src/luasocket.c +++ b/src/luasocket.c | |||
@@ -48,10 +48,10 @@ static int base_open(lua_State *L); | |||
48 | * Modules and functions | 48 | * Modules and functions |
49 | \*-------------------------------------------------------------------------*/ | 49 | \*-------------------------------------------------------------------------*/ |
50 | static const luaL_reg mod[] = { | 50 | static const luaL_reg mod[] = { |
51 | {"auxiliar", aux_open}, | 51 | {"auxiliar", auxiliar_open}, |
52 | {"except", except_open}, | 52 | {"except", except_open}, |
53 | {"timeout", tm_open}, | 53 | {"timeout", timeout_open}, |
54 | {"buffer", buf_open}, | 54 | {"buffer", buffer_open}, |
55 | {"inet", inet_open}, | 55 | {"inet", inet_open}, |
56 | {"tcp", tcp_open}, | 56 | {"tcp", tcp_open}, |
57 | {"udp", udp_open}, | 57 | {"udp", udp_open}, |
@@ -79,7 +79,7 @@ static int global_skip(lua_State *L) { | |||
79 | \*-------------------------------------------------------------------------*/ | 79 | \*-------------------------------------------------------------------------*/ |
80 | static int global_unload(lua_State *L) { | 80 | static int global_unload(lua_State *L) { |
81 | (void) L; | 81 | (void) L; |
82 | sock_close(); | 82 | socket_close(); |
83 | return 0; | 83 | return 0; |
84 | } | 84 | } |
85 | 85 | ||
@@ -87,7 +87,7 @@ static int global_unload(lua_State *L) { | |||
87 | * Setup basic stuff. | 87 | * Setup basic stuff. |
88 | \*-------------------------------------------------------------------------*/ | 88 | \*-------------------------------------------------------------------------*/ |
89 | static int base_open(lua_State *L) { | 89 | static int base_open(lua_State *L) { |
90 | if (sock_open()) { | 90 | if (socket_open()) { |
91 | /* export functions (and leave namespace table on top of stack) */ | 91 | /* export functions (and leave namespace table on top of stack) */ |
92 | luaL_openlib(L, "socket", func, 0); | 92 | luaL_openlib(L, "socket", func, 0); |
93 | #ifdef LUASOCKET_DEBUG | 93 | #ifdef LUASOCKET_DEBUG |