aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/inet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/inet.c b/src/inet.c
index 138c9ab..afef5f4 100755
--- a/src/inet.c
+++ b/src/inet.c
@@ -290,7 +290,7 @@ int inet_meth_getsockname(lua_State *L, p_socket ps, int family)
290 return 2; 290 return 2;
291 } 291 }
292 lua_pushstring(L, name); 292 lua_pushstring(L, name);
293 lua_pushstring(L, port); 293 lua_pushinteger(L, (int) strtol(port, (char **) NULL, 10));
294 switch (family) { 294 switch (family) {
295 case AF_INET: lua_pushliteral(L, "inet"); break; 295 case AF_INET: lua_pushliteral(L, "inet"); break;
296 case AF_INET6: lua_pushliteral(L, "inet6"); break; 296 case AF_INET6: lua_pushliteral(L, "inet6"); break;