summaryrefslogtreecommitdiffstats
path: root/hunt
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2009-07-04 06:31:31 +0000
committerdholland <dholland@NetBSD.org>2009-07-04 06:31:31 +0000
commit1f91c41d4dd9a2321320f1856b01f542e481d8a3 (patch)
tree10e6aa225289e73eedaec2781632554a40a175d7 /hunt
parent4c76b7ec11ea4a4c4f121d6623ddec249e227899 (diff)
downloadbsdgames-darwin-1f91c41d4dd9a2321320f1856b01f542e481d8a3.tar.gz
bsdgames-darwin-1f91c41d4dd9a2321320f1856b01f542e481d8a3.tar.zst
bsdgames-darwin-1f91c41d4dd9a2321320f1856b01f542e481d8a3.zip
Remove references to config #defines for the thoroughly obsolete
4.2BSD syslog API.
Diffstat (limited to 'hunt')
-rw-r--r--hunt/Makefile.inc15
-rw-r--r--hunt/huntd/bsd.h7
-rw-r--r--hunt/huntd/driver.c9
3 files changed, 9 insertions, 22 deletions
diff --git a/hunt/Makefile.inc b/hunt/Makefile.inc
index 72d7268a..21b73a66 100644
--- a/hunt/Makefile.inc
+++ b/hunt/Makefile.inc
@@ -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 @@ GAME_PARAM= -DRANDOM -DREFLECT -DMONITOR -DOOZE -DFLY -DVOLCANO -DBOOTS \
# 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 @@ GAME_PARAM= -DRANDOM -DREFLECT -DMONITOR -DOOZE -DFLY -DVOLCANO -DBOOTS \
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
diff --git a/hunt/huntd/bsd.h b/hunt/huntd/bsd.h
index 8880093b..6763cbf0 100644
--- a/hunt/huntd/bsd.h
+++ b/hunt/huntd/bsd.h
@@ -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
diff --git a/hunt/huntd/driver.c b/hunt/huntd/driver.c
index f1d79297..86c3a5d7 100644
--- a/hunt/huntd/driver.c
+++ b/hunt/huntd/driver.c
@@ -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 @@ init(void)
(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