silence coverity warnings

(cherry picked from commit 45b727f651)
This commit is contained in:
Mark Andrews
2013-04-11 17:07:50 +10:00
parent 7bb8b43fb1
commit 53f675154c
8 changed files with 45 additions and 23 deletions

View File

@@ -263,9 +263,13 @@ main(int argc, char *argv[]) {
isc_result_t result;
int pf;
if (argc > 1)
if (argc > 1) {
workers = atoi(argv[1]);
else
if (workers < 1)
workers = 1;
if (workers > 8192)
workers = 8192;
} else
workers = 2;
printf("%d workers\n", workers);