aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2013-08-10 19:02:52 +0200
committerKim Alvefur <zash@zash.se>2013-08-10 19:02:52 +0200
commit3bacda05be2725020dabfb1a200d93a807943007 (patch)
tree1b048e0101426e6823a635cb2859b51d4a668ec1
parent4b618a8727365b880e115c6fd53869040c2ad238 (diff)
downloadprosody-3bacda05be2725020dabfb1a200d93a807943007.tar.gz
prosody-3bacda05be2725020dabfb1a200d93a807943007.zip
util.pposix: Fix overflow in rlimit argument conversion (thanks gcc, now be quiet please)
-rw-r--r--util-src/pposix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util-src/pposix.c b/util-src/pposix.c
index c0d1f5a2..2e1de971 100644
--- a/util-src/pposix.c
+++ b/util-src/pposix.c
@@ -491,7 +491,7 @@ int string2resource(const char *s) {
return -1;
}
-int arg_to_rlimit(lua_State* L, int idx, rlim_t current) {
+unsigned long int arg_to_rlimit(lua_State* L, int idx, rlim_t current) {
switch(lua_type(L, idx)) {
case LUA_TSTRING:
if(strcmp(lua_tostring(L, idx), "unlimited") == 0)