Software /
code /
prosody
Diff
util-src/pposix.c @ 5777:c98f11bcd0ea
util.pposix: Fix overflow in rlimit argument conversion (thanks gcc, now be quiet please)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 10 Aug 2013 19:02:52 +0200 |
parent | 5720:449399a7e136 |
child | 5814:5cf1c08805fb |
line wrap: on
line diff
--- a/util-src/pposix.c Fri Aug 09 17:48:21 2013 +0200 +++ b/util-src/pposix.c Sat Aug 10 19:02:52 2013 +0200 @@ -491,7 +491,7 @@ 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)