diff options
author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2003-03-20 23:11:25 +0000 |
---|---|---|
committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2003-03-20 23:11:25 +0000 |
commit | d3d4156ef9d4d7e934e246dc265138be224f2612 (patch) | |
tree | 9edfb76ad844a233596b472ade7182550831fa6c /src/inet.c | |
parent | 53857360bb1ca9cd2080b69d930763ae59db9b06 (diff) | |
download | luasocket-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -86,7 +86,7 @@ void inet_construct(lua_State *L, p_inet inet) | |||
86 | \*-------------------------------------------------------------------------*/ | 86 | \*-------------------------------------------------------------------------*/ |
87 | static int inet_lua_toip(lua_State *L) | 87 | static 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 | \*-------------------------------------------------------------------------*/ |
115 | static int inet_lua_tohostname(lua_State *L) | 115 | static 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)) |