diff options
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)) |