projects
/
prosody.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
util.pposix: Fix overflow in rlimit argument conversion (thanks gcc, now be quiet...
[prosody.git]
/
util-src
/
pposix.c
diff --git
a/util-src/pposix.c
b/util-src/pposix.c
index c0d1f5a29e891484c7fc93139efc0876b9450e88..2e1de97171dea2ce0f4d902e664f357ada77ec90 100644
(file)
--- 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)