2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-29 13:38:26 +00:00

renamed -N option to -n for portability

This commit is contained in:
Andreas Gustafsson 2000-02-28 22:19:47 +00:00
parent f30f2b279c
commit ef890b8214

View File

@ -163,7 +163,7 @@ library_unexpected_error(char *file, int line, char *format, va_list args) {
static void static void
usage(void) { usage(void) {
fprintf(stderr, fprintf(stderr,
"usage: named [-c conffile] [-d debuglevel] [-f[f]] [-N number_of_cpus]\n" "usage: named [-c conffile] [-d debuglevel] [-f[f]] [-n number_of_cpus]\n"
" [-p port] [-s] [-t chrootdir] [-u username]\n"); " [-p port] [-s] [-t chrootdir] [-u username]\n");
} }
@ -174,7 +174,7 @@ parse_command_line(int argc, char *argv[]) {
isc_commandline_errprint = ISC_FALSE; isc_commandline_errprint = ISC_FALSE;
while ((ch = isc_commandline_parse(argc, argv, while ((ch = isc_commandline_parse(argc, argv,
"c:d:fN:p:st:u:x:")) != "c:d:fn:N:p:st:u:x:")) !=
-1) { -1) {
switch (ch) { switch (ch) {
case 'c': case 'c':
@ -188,7 +188,8 @@ parse_command_line(int argc, char *argv[]) {
ns_g_logstderr = ISC_TRUE; ns_g_logstderr = ISC_TRUE;
ns_g_foreground = ISC_TRUE; ns_g_foreground = ISC_TRUE;
break; break;
case 'N': case 'N': /* Deprecated. */
case 'n':
ns_g_cpus = atoi(isc_commandline_argument); ns_g_cpus = atoi(isc_commandline_argument);
if (ns_g_cpus == 0) if (ns_g_cpus == 0)
ns_g_cpus = 1; ns_g_cpus = 1;