#endif
static int opt_signal_service = FALSE;
-static char *opt_syslog_facility = NULL;
+static char *opt_syslog_facility = nullptr;
static int icpPortNumOverride = 1; /* Want to detect "-u 0" */
static int configured_once = 0;
#if MALLOC_DBG
Auth::Scheme::FreeAll();
#endif
- eventAdd("SquidTerminate", &StopEventLoop, NULL, 0, 1, false);
+ eventAdd("SquidTerminate", &StopEventLoop, nullptr, 0, 1, false);
}
void doShutdown(time_t wait);
// long options
static struct option squidOptions[] = {
- {"foreground", no_argument, 0, optForeground},
- {"kid", required_argument, 0, optKid},
- {"help", no_argument, 0, 'h'},
- {"version", no_argument, 0, 'v'},
- {0, 0, 0, 0}
+ {"foreground", no_argument, nullptr, optForeground},
+ {"kid", required_argument, nullptr, optKid},
+ {"help", no_argument, nullptr, 'h'},
+ {"version", no_argument, nullptr, 'v'},
+ {nullptr, 0, nullptr, 0}
};
// handle a command line parameter
#endif
Security::CloseLogs();
- eventAdd("mainReconfigureFinish", &mainReconfigureFinish, NULL, 0, 1,
+ eventAdd("mainReconfigureFinish", &mainReconfigureFinish, nullptr, 0, 1,
false);
}
#endif
if (Config.onoff.announce) {
- if (!eventFind(start_announce, NULL))
- eventAdd("start_announce", start_announce, NULL, 3600.0, 1);
+ if (!eventFind(start_announce, nullptr))
+ eventAdd("start_announce", start_announce, nullptr, 3600.0, 1);
} else {
- if (eventFind(start_announce, NULL))
- eventDelete(start_announce, NULL);
+ if (eventFind(start_announce, nullptr))
+ eventDelete(start_announce, nullptr);
}
reconfiguring = 0;
if ((cpid = fork()) == 0) {
/* child */
- execl(script, squid_start_script, (char *)NULL);
+ execl(script, squid_start_script, (char *)nullptr);
_exit(-1);
} else {
do {