silence coverity warnings

This commit is contained in:
Mark Andrews
2013-04-11 17:07:50 +10:00
parent fce7ba0f07
commit 45b727f651
10 changed files with 52 additions and 26 deletions

View File

@@ -102,9 +102,13 @@ main(int argc, char *argv[]) {
isc_time_t expires, now;
isc_interval_t interval;
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);