aboutsummaryrefslogtreecommitdiff
path: root/src/inet.c
diff options
context:
space:
mode:
authorDiego Nehab <diego@tecgraf.puc-rio.br>2003-03-20 23:11:25 +0000
committerDiego Nehab <diego@tecgraf.puc-rio.br>2003-03-20 23:11:25 +0000
commitd3d4156ef9d4d7e934e246dc265138be224f2612 (patch)
tree9edfb76ad844a233596b472ade7182550831fa6c /src/inet.c
parent53857360bb1ca9cd2080b69d930763ae59db9b06 (diff)
downloadluasocket-d3d4156ef9d4d7e934e246dc265138be224f2612.tar.gz
luasocket-d3d4156ef9d4d7e934e246dc265138be224f2612.tar.bz2
luasocket-d3d4156ef9d4d7e934e246dc265138be224f2612.zip
Completed port to Lua 5.0-beta.
Diffstat (limited to 'src/inet.c')
-rw-r--r--src/inet.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/inet.c b/src/inet.c
index 3e89e88..eb4124b 100644
--- a/src/inet.c
+++ b/src/inet.c
@@ -86,7 +86,7 @@ void inet_construct(lua_State *L, p_inet inet)
86\*-------------------------------------------------------------------------*/ 86\*-------------------------------------------------------------------------*/
87static int inet_lua_toip(lua_State *L) 87static int inet_lua_toip(lua_State *L)
88{ 88{
89 cchar *address = luaL_check_string(L, 1); 89 cchar *address = luaL_checkstring(L, 1);
90 struct in_addr addr; 90 struct in_addr addr;
91 struct hostent *hp; 91 struct hostent *hp;
92 if (inet_aton(address, &addr)) 92 if (inet_aton(address, &addr))
@@ -114,7 +114,7 @@ static int inet_lua_toip(lua_State *L)
114\*-------------------------------------------------------------------------*/ 114\*-------------------------------------------------------------------------*/
115static int inet_lua_tohostname(lua_State *L) 115static int inet_lua_tohostname(lua_State *L)
116{ 116{
117 cchar *address = luaL_check_string(L, 1); 117 cchar *address = luaL_checkstring(L, 1);
118 struct in_addr addr; 118 struct in_addr addr;
119 struct hostent *hp; 119 struct hostent *hp;
120 if (inet_aton(address, &addr)) 120 if (inet_aton(address, &addr))