1 --- dnsreflector.c.orig 2009-05-30 14:02:43.000000000 +0300
2 +++ dnsreflector.c 2009-05-30 14:04:31.000000000 +0300
5 #define MAXQUERY (PACKETSZ - sizeof(ADDITIONAL) - sizeof(AUTHORITY) - sizeof(ANSWER_AAAA))
7 -static struct syslog_data sdata = SYSLOG_DATA_INIT;
9 +static int daemonize = 0;
11 logit(int level, const char *fmt, ...)
18 - vsyslog_r(level, &sdata, fmt, ap);
20 + vsyslog(level, fmt, ap);
22 fprintf(stderr, "%s: ", __progname);
23 vfprintf(stderr, fmt, ap);
26 /* Options and their defaults */
31 /* Process commandline arguments */
33 /* Use syslog if daemonized */
36 - openlog_r("dnsreflector", LOG_PID | LOG_NDELAY, LOG_DAEMON,
40 /* Daemonize if requested */