diff options
| author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-06-04 15:15:45 +0000 |
|---|---|---|
| committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-06-04 15:15:45 +0000 |
| commit | 9ed7f955e5fc69af9bf1794fa2c8cd227981ba24 (patch) | |
| tree | 8c3521366ef84f534bbec278437be7ea24e2ac1c /src/inet.c | |
| parent | 63d60223da9de60f873ca08a25dbd9512c998929 (diff) | |
| download | luasocket-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.c | 3 |
1 files changed, 0 insertions, 3 deletions
| @@ -37,13 +37,10 @@ static luaL_reg func[] = { | |||
| 37 | \*-------------------------------------------------------------------------*/ | 37 | \*-------------------------------------------------------------------------*/ |
| 38 | int inet_open(lua_State *L) | 38 | int 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 | ||
