aboutsummaryrefslogtreecommitdiff
path: root/src/inet.c
diff options
context:
space:
mode:
authorDiego Nehab <diego@tecgraf.puc-rio.br>2004-06-04 15:15:45 +0000
committerDiego Nehab <diego@tecgraf.puc-rio.br>2004-06-04 15:15:45 +0000
commit9ed7f955e5fc69af9bf1794fa2c8cd227981ba24 (patch)
tree8c3521366ef84f534bbec278437be7ea24e2ac1c /src/inet.c
parent63d60223da9de60f873ca08a25dbd9512c998929 (diff)
downloadluasocket-9ed7f955e5fc69af9bf1794fa2c8cd227981ba24.tar.gz
luasocket-9ed7f955e5fc69af9bf1794fa2c8cd227981ba24.tar.bz2
luasocket-9ed7f955e5fc69af9bf1794fa2c8cd227981ba24.zip
Só pra não perder se der merda.
Diffstat (limited to 'src/inet.c')
-rw-r--r--src/inet.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/inet.c b/src/inet.c
index 8941575..3a57441 100644
--- a/src/inet.c
+++ b/src/inet.c
@@ -37,13 +37,10 @@ static luaL_reg func[] = {
37\*-------------------------------------------------------------------------*/ 37\*-------------------------------------------------------------------------*/
38int inet_open(lua_State *L) 38int inet_open(lua_State *L)
39{ 39{
40 lua_pushstring(L, LUASOCKET_LIBNAME);
41 lua_gettable(L, LUA_GLOBALSINDEX);
42 lua_pushstring(L, "dns"); 40 lua_pushstring(L, "dns");
43 lua_newtable(L); 41 lua_newtable(L);
44 luaL_openlib(L, NULL, func, 0); 42 luaL_openlib(L, NULL, func, 0);
45 lua_settable(L, -3); 43 lua_settable(L, -3);
46 lua_pop(L, 1);
47 return 0; 44 return 0;
48} 45}
49 46