struct syslog_data lost its 'opened' member.  Kind of a namespace
violation, this looks like an easy fix:

Index: Makefile
===================================================================
RCS file: /cvs/ports/net/dnsreflector/Makefile,v
retrieving revision 1.8
diff -u -p -r1.8 Makefile
--- Makefile    11 Oct 2013 23:50:16 -0000      1.8
+++ Makefile    15 Jul 2014 21:25:47 -0000
@@ -3,6 +3,7 @@
 COMMENT=               DNS queries reflector
 
 DISTNAME=              dnsreflector-1.02
+REVISION=              0
 CATEGORIES=            net sysutils
 
 HOMEPAGE=              http://www.wolfermann.org/dnsreflector.html
Index: patches/patch-dnsreflector_c
===================================================================
RCS file: patches/patch-dnsreflector_c
diff -N patches/patch-dnsreflector_c
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-dnsreflector_c        15 Jul 2014 21:24:46 -0000
@@ -0,0 +1,28 @@
+$OpenBSD$
+--- dnsreflector.c.orig        Sun Apr 27 15:22:13 2003
++++ dnsreflector.c     Tue Jul 15 23:24:39 2014
+@@ -88,6 +88,7 @@
+ #define MAXQUERY (PACKETSZ - sizeof(ADDITIONAL) - sizeof(AUTHORITY) - 
sizeof(ANSWER_AAAA))
+ 
+ static struct syslog_data sdata = SYSLOG_DATA_INIT;
++static int daemonize;
+ 
+ static void
+ logit(int level, const char *fmt, ...)
+@@ -97,7 +98,7 @@ logit(int level, const char *fmt, ...)
+ 
+       va_start(ap, fmt);
+ 
+-      if (sdata.opened) {
++      if (daemonize) {
+               vsyslog_r(level, &sdata, fmt, ap);
+       } else {
+               fprintf(stderr, "%s: ", __progname);
+@@ -148,7 +149,6 @@ main(int argc, char *argv[])
+ 
+       /* Options and their defaults */
+       char *address = NULL;
+-      int daemonize = 0;
+       int port = 53000;
+ 
+       /* Process commandline arguments */


-- 
jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE

Reply via email to