Commit 6f662c47 authored by Mattias Ellert's avatar Mattias Ellert

Fix compilation warning: comparison between signed and unsigned integer expressions

parent cfbf7837
......@@ -267,7 +267,7 @@ namespace gridftpd {
};
if(close_fds) {
struct rlimit lim;
int max_files;
unsigned long long int max_files;
if(getrlimit(RLIMIT_NOFILE,&lim) == 0) { max_files=lim.rlim_cur; }
else { max_files=4096; };
if(max_files == RLIM_INFINITY) max_files=4096;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment