Skip to content

Commit

Permalink
src/dopt.c: increase arg_max_jobs limit to max int
Browse files Browse the repository at this point in the history
Issue distcc#452. jobs limit
  • Loading branch information
00gh committed Mar 31, 2022
1 parent ae9922c commit c376f12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dopt.c
Expand Up @@ -309,8 +309,8 @@ int distccd_parse_options(int argc, const char **argv)
#endif

case 'j':
if (arg_max_jobs < 1 || arg_max_jobs > 200) {
rs_log_error("--jobs argument must be between 1 and 200");
if (arg_max_jobs < 1 ) {
rs_log_error("--jobs argument must be more than 0");
exitcode = EXIT_BAD_ARGUMENTS;
goto out_exit;
}
Expand Down

0 comments on commit c376f12

Please sign in to comment.