From d3d4156ef9d4d7e934e246dc265138be224f2612 Mon Sep 17 00:00:00 2001 From: Diego Nehab Date: Thu, 20 Mar 2003 23:11:25 +0000 Subject: Completed port to Lua 5.0-beta. --- src/inet.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/inet.c') 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) \*-------------------------------------------------------------------------*/ static int inet_lua_toip(lua_State *L) { - cchar *address = luaL_check_string(L, 1); + cchar *address = luaL_checkstring(L, 1); struct in_addr addr; struct hostent *hp; if (inet_aton(address, &addr)) @@ -114,7 +114,7 @@ static int inet_lua_toip(lua_State *L) \*-------------------------------------------------------------------------*/ static int inet_lua_tohostname(lua_State *L) { - cchar *address = luaL_check_string(L, 1); + cchar *address = luaL_checkstring(L, 1); struct in_addr addr; struct hostent *hp; if (inet_aton(address, &addr)) -- cgit v1.2.3-55-g6feb