aboutsummaryrefslogtreecommitdiff
path: root/src/inet.c
diff options
context:
space:
mode:
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))