Module Name:    src
Committed By:   dholland
Date:           Sat Jul  4 06:31:32 UTC 2009

Modified Files:
        src/games/hunt: Makefile.inc
        src/games/hunt/huntd: bsd.h driver.c

Log Message:
Remove references to config #defines for the thoroughly obsolete
4.2BSD syslog API.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/games/hunt/Makefile.inc
cvs rdiff -u -r1.5 -r1.6 src/games/hunt/huntd/bsd.h
cvs rdiff -u -r1.17 -r1.18 src/games/hunt/huntd/driver.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/games/hunt/Makefile.inc
diff -u src/games/hunt/Makefile.inc:1.7 src/games/hunt/Makefile.inc:1.8
--- src/games/hunt/Makefile.inc:1.7	Wed Jun 11 12:10:21 2003
+++ src/games/hunt/Makefile.inc	Sat Jul  4 06:31:31 2009
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.7 2003/06/11 12:10:21 wiz Exp $
+#	$NetBSD: Makefile.inc,v 1.8 2009/07/04 06:31:31 dholland Exp $
 #
 #
 #  Hunt
@@ -52,17 +52,14 @@
 # System parameter flags are:
 #	DEBUG		Don't trust everything in the code
 #	INTERNET	Use the Internet domain IPC instead of UNIX domain
-#	LOG		Use syslog error-logging in driver (needs SYSLOG_42 or
-#			or SYSLOG_43)
+#	LOG		Use syslog error-logging in driver
 #	OLDIPC		Use 4.1a internet system calls (must also define
 #			INTERNET)
 #	TERMINFO	Use terminfo instead of termcap
-#	SYSLOG_42	Use 4.2 BSD syslog(3)
-#	SYSLOG_43	Use 4.2 BSD syslog(3)
 #	LOG		Use syslog(3) for logging errors
 #	BSD_RELEASE	Which version of BSD distribution
-#			42 is 4.2BSD (implies SYSLOG_42)
-#			43 is 4.3BSD (implies BROADCAST, SYSLOG_43)
+#			42 is 4.2BSD
+#			43 is 4.3BSD (implies BROADCAST)
 #	USE_CURSES	Use curses for everything (automatic w/TERMINFO)
 #	SIGNAL_TYPE	void or int
 #	HPUX		do special HPUX only hacks
@@ -70,9 +67,9 @@
 DEFS_BSD43=	-DINTERNET -DLOG -DBSD_RELEASE=43 -DSIGNAL_TYPE=int
 DEFS_BSD44=	-DINTERNET -DLOG -DBSD_RELEASE=44 -DSIGNAL_TYPE=void -DUSE_CURSES
 DEFS_SUN=	-DINTERNET -DLOG -DBSD_RELEASE=42 -DBROADCAST -DSIGNAL_TYPE=int
-DEFS_SUN4_0=	-DINTERNET -DLOG -DSYSLOG_43 -DBROADCAST -DSIGNAL_TYPE=void
+DEFS_SUN4_0=	-DINTERNET -DLOG -DBROADCAST -DSIGNAL_TYPE=void
 DEFS_ULTRIX=	-DINTERNET -DLOG -DBSD_RELEASE=42 -DSIGNAL_TYPE=void
-DEFS_HPUX=	-DHPUX -DINTERNET -DLOG -DSYSLOG_43 -DBROADCAST -DTERMINFO -DSIGNAL_TYPE=void
+DEFS_HPUX=	-DHPUX -DINTERNET -DLOG -DBROADCAST -DTERMINFO -DSIGNAL_TYPE=void
 DEFS_SGI=	-DINTERNET -DLOG -DBSD_RELEASE=43 -DTERMINFO -DSIGNAL_TYPE=void
 DEFS_NEXT=	$(DEFS_BSD43) -bsd -Dconst= -DSIGNAL_TYPE=int
 DEFS_OSF1=	-DINTERNET -DLOG -DBSD_RELEASE=43 -DSIGNAL_TYPE=void -D_BSD

Index: src/games/hunt/huntd/bsd.h
diff -u src/games/hunt/huntd/bsd.h:1.5 src/games/hunt/huntd/bsd.h:1.6
--- src/games/hunt/huntd/bsd.h:1.5	Sat Jul  4 04:29:54 2009
+++ src/games/hunt/huntd/bsd.h	Sat Jul  4 06:31:31 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: bsd.h,v 1.5 2009/07/04 04:29:54 dholland Exp $	*/
+/*	$NetBSD: bsd.h,v 1.6 2009/07/04 06:31:31 dholland Exp $	*/
 
 /*
  * Copyright (c) 1983-2003, Regents of the University of California.
@@ -33,9 +33,4 @@
 
 #if defined(BSD_RELEASE) && BSD_RELEASE >= 43
 #define BROADCAST
-#define SYSLOG_43
-#endif
-
-#if defined(BSD_RELEASE) && BSD_RELEASE == 42
-#define SYSLOG_42
 #endif

Index: src/games/hunt/huntd/driver.c
diff -u src/games/hunt/huntd/driver.c:1.17 src/games/hunt/huntd/driver.c:1.18
--- src/games/hunt/huntd/driver.c:1.17	Sat Jul  4 04:29:54 2009
+++ src/games/hunt/huntd/driver.c	Sat Jul  4 06:31:31 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: driver.c,v 1.17 2009/07/04 04:29:54 dholland Exp $	*/
+/*	$NetBSD: driver.c,v 1.18 2009/07/04 06:31:31 dholland Exp $	*/
 /*
  * Copyright (c) 1983-2003, Regents of the University of California.
  * All rights reserved.
@@ -32,7 +32,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: driver.c,v 1.17 2009/07/04 04:29:54 dholland Exp $");
+__RCSID("$NetBSD: driver.c,v 1.18 2009/07/04 06:31:31 dholland Exp $");
 #endif /* not lint */
 
 #include <sys/ioctl.h>
@@ -279,13 +279,8 @@
 	(void) signal(SIGPIPE, SIG_IGN);
 
 #ifdef LOG
-#ifdef	SYSLOG_43
 	openlog("huntd", LOG_PID, LOG_DAEMON);
 #endif
-#ifdef	SYSLOG_42
-	openlog("huntd", LOG_PID);
-#endif
-#endif
 
 	/*
 	 * Initialize statistics socket

Reply via email to