summaryrefslogtreecommitdiffstats
path: root/lem/io/stream.c
diff options
context:
space:
mode:
authorEmil Renner Berthing <esmil@mailme.dk>2016-01-07 22:39:28 +0100
committerEmil Renner Berthing <esmil@mailme.dk>2016-01-08 00:20:13 +0100
commit4c0ad860e7710b8cecaa13b96dfc6bdb8d6a14ea (patch)
tree089aff1638d71783695571cdae7cbf026277b5eb /lem/io/stream.c
parente005effffa9b69bb1a93a8031308700ae8e4a857 (diff)
downloadlem-4c0ad860e7710b8cecaa13b96dfc6bdb8d6a14ea.tar.gz
lem-4c0ad860e7710b8cecaa13b96dfc6bdb8d6a14ea.tar.xz
lem-4c0ad860e7710b8cecaa13b96dfc6bdb8d6a14ea.zip
Lua 5.3.2
Diffstat (limited to 'lem/io/stream.c')
-rw-r--r--lem/io/stream.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/lem/io/stream.c b/lem/io/stream.c
index a8ab4d2..47a5775 100644
--- a/lem/io/stream.c
+++ b/lem/io/stream.c
@@ -389,8 +389,8 @@ stream_getpeer(lua_State *T)
}
lua_pushliteral(T, "*unix");
- lua_pushnumber(T, cred.cr_uid);
- lua_pushnumber(T, cred.cr_gid);
+ lua_pushinteger(T, cred.cr_uid);
+ lua_pushinteger(T, cred.cr_gid);
#else
struct ucred cred;
@@ -399,8 +399,8 @@ stream_getpeer(lua_State *T)
return io_strerror(T, errno);
lua_pushliteral(T, "*unix");
- lua_pushnumber(T, cred.uid);
- lua_pushnumber(T, cred.gid);
+ lua_pushinteger(T, cred.uid);
+ lua_pushinteger(T, cred.gid);
#endif
return 3;
}
@@ -413,7 +413,7 @@ stream_getpeer(lua_State *T)
return io_strerror(T, errno);
lua_pushstring(T, buf);
- lua_pushnumber(T, ntohs(addr.in.sin_port));
+ lua_pushinteger(T, ntohs(addr.in.sin_port));
return 2;
}
@@ -425,7 +425,7 @@ stream_getpeer(lua_State *T)
return io_strerror(T, errno);
lua_pushstring(T, buf);
- lua_pushnumber(T, ntohs(addr.in6.sin6_port));
+ lua_pushinteger(T, ntohs(addr.in6.sin6_port));
return 2;
}
}
@@ -504,7 +504,7 @@ stream_sendfile_reap(struct lem_async *a)
int ret;
if (sf->ret == 0) {
- lua_pushnumber(T, sf->size);
+ lua_pushinteger(T, sf->size);
ret = 1;
} else {
if (s->open)