diff options
author | Kim Alvefur <zash@zash.se> | 2013-08-10 19:02:52 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2013-08-10 19:02:52 +0200 |
commit | 3bacda05be2725020dabfb1a200d93a807943007 (patch) | |
tree | 1b048e0101426e6823a635cb2859b51d4a668ec1 /util-src/pposix.c | |
parent | 4b618a8727365b880e115c6fd53869040c2ad238 (diff) | |
download | prosody-3bacda05be2725020dabfb1a200d93a807943007.tar.gz prosody-3bacda05be2725020dabfb1a200d93a807943007.zip |
util.pposix: Fix overflow in rlimit argument conversion (thanks gcc, now be quiet please)
Diffstat (limited to 'util-src/pposix.c')
-rw-r--r-- | util-src/pposix.c | 2 |
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) |