Fix a build error

This commit is contained in:
Max Lv
2015-12-15 09:17:44 +08:00
parent 47f984e61c
commit 52ff163cd6
5 changed files with 9 additions and 1 deletions
+2
View File
@@ -1044,9 +1044,11 @@ int main(int argc, char **argv)
case 'a':
user = optarg;
break;
#ifdef HAVE_SETRLIMIT
case 'n':
nofile = atoi(optarg);
break;
#endif
case 'u':
mode = TCP_AND_UDP;
break;
+2
View File
@@ -675,9 +675,11 @@ int main(int argc, char **argv)
case 'a':
user = optarg;
break;
#ifdef HAVE_SETRLIMIT
case 'n':
nofile = atoi(optarg);
break;
#endif
case 'u':
mode = TCP_AND_UDP;
break;
+2
View File
@@ -1346,9 +1346,11 @@ int main(int argc, char **argv)
case 'a':
user = optarg;
break;
#ifdef HAVE_SETRLIMIT
case 'n':
nofile = atoi(optarg);
break;
#endif
case 'u':
mode = TCP_AND_UDP;
break;
+2
View File
@@ -747,9 +747,11 @@ int main(int argc, char **argv)
case 'a':
user = optarg;
break;
#ifdef HAVE_SETRLIMIT
case 'n':
nofile = atoi(optarg);
break;
#endif
case 'v':
verbose = 1;
break;
+1 -1
View File
@@ -233,7 +233,7 @@ void usage()
" [-c <config_file>] The path to config file.\n");
#ifdef HAVE_SETRLIMIT
printf(
" [-n <number>] Max number of open files, only available on Linux.\n");
" [-n <number>] Max number of open files.\n");
#endif
#ifndef MODULE_REDIR
printf(