bnode_ApplyInstance(bdrestart, 0);
}
}
- return NULL;
+ AFS_UNREACHED(return(NULL));
}
#ifdef AFS_AIX32_ENV
else {
/* hack to support help flag */
+ int ec;
+ if (strcmp(argv[code], "-help") == 0 || strcmp(argv[code], "-h") == 0)
+ ec = 0; /* It is not an error to ask for usage. */
+ else {
+ printf("Unrecognized option: %s\n", argv[code]);
+ ec = 1;
+ }
#ifndef AFS_NT40_ENV
printf("Usage: bosserver [-noauth] [-log] "
#endif
fflush(stdout);
- exit(0);
+ exit(ec);
}
}
if (auditFileName) {
host = GetRxBindAddress();
}
for (i = 0; i < 10; i++) {
- if (rxBind) {
- code = rx_InitHost(host, htons(AFSCONF_NANNYPORT));
- } else {
- code = rx_Init(htons(AFSCONF_NANNYPORT));
- }
+ code = rx_InitHost(host, htons(AFSCONF_NANNYPORT));
if (code) {
bozo_Log("can't initialize rx: code=%d\n", code);
sleep(3);
fclose(bozo_logFile);
}
}
+ va_end(ap);
}