};
/* display usage message and terminate */
-static void help(void) {
+static void attribute((noreturn)) help(void) {
xprintf("Usage:\n"
" disorderd [OPTIONS]\n"
"Options:\n"
if(!setlocale(LC_CTYPE, ""))
disorder_fatal(errno, "error calling setlocale");
/* garbage-collect PCRE's memory */
- pcre_malloc = xmalloc;
- pcre_free = xfree;
+ regexp_setup();
while((n = getopt_long(argc, argv, "hVc:dfP:NsW", options, 0)) >= 0) {
switch(n) {
case 'h': help();
openlog(progname, LOG_PID, LOG_DAEMON);
log_default = &log_syslog;
}
- disorder_info("process ID %lu", (unsigned long)getpid());
+ disorder_info("version "VERSION" process ID %lu", (unsigned long)getpid());
fix_path();
srand(xtime(0)); /* don't start the same every time */
/* gcrypt initialization */