summaryrefslogtreecommitdiffstats
path: root/hunt/huntd/driver.c
diff options
context:
space:
mode:
authorlukem <lukem@NetBSD.org>2001-01-09 23:49:54 +0000
committerlukem <lukem@NetBSD.org>2001-01-09 23:49:54 +0000
commit61eddd59dac1cc0a63ae03c014713e9b3a769b8e (patch)
treed1674061fa21701d4a9e47a79b0f87a3acd77133 /hunt/huntd/driver.c
parent2196966a106934b46c9818423b4e0d4719a761a5 (diff)
downloadbsdgames-darwin-61eddd59dac1cc0a63ae03c014713e9b3a769b8e.tar.gz
bsdgames-darwin-61eddd59dac1cc0a63ae03c014713e9b3a769b8e.tar.zst
bsdgames-darwin-61eddd59dac1cc0a63ae03c014713e9b3a769b8e.zip
- openlog "huntd" instead of "HUNT"
- consistently log non-critical errors at LOG_WARNING not LOG_ERR - consistently use positive numbers for exit() and _exit() - one warning was using printf() instead of syslog()
Diffstat (limited to 'hunt/huntd/driver.c')
-rw-r--r--hunt/huntd/driver.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/hunt/huntd/driver.c b/hunt/huntd/driver.c
index fdfdfe46..c8a4c806 100644
--- a/hunt/huntd/driver.c
+++ b/hunt/huntd/driver.c
@@ -1,4 +1,4 @@
-/* $NetBSD: driver.c,v 1.6 2000/04/14 05:58:03 simonb Exp $ */
+/* $NetBSD: driver.c,v 1.7 2001/01/09 23:49:54 lukem Exp $ */
/*
* Hunt
* Copyright (c) 1985 Conrad C. Huang, Gregory S. Couch, Kenneth C.R.C. Arnold
@@ -7,7 +7,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: driver.c,v 1.6 2000/04/14 05:58:03 simonb Exp $");
+__RCSID("$NetBSD: driver.c,v 1.7 2001/01/09 23:49:54 lukem Exp $");
#endif /* not lint */
# include <sys/ioctl.h>
@@ -266,10 +266,10 @@ init()
# ifdef LOG
# ifdef SYSLOG_43
- openlog("HUNT", LOG_PID, LOG_DAEMON);
+ openlog("huntd", LOG_PID, LOG_DAEMON);
# endif
# ifdef SYSLOG_42
- openlog("HUNT", LOG_PID);
+ openlog("huntd", LOG_PID);
# endif
# endif
@@ -907,7 +907,7 @@ send_stats()
if (errno == EINTR)
return;
# ifdef LOG
- syslog(LOG_ERR, "accept: %m");
+ syslog(LOG_WARNING, "accept: %m");
# else
warn("accept");
# endif
@@ -916,7 +916,7 @@ send_stats()
fp = fdopen(s, "w");
if (fp == NULL) {
# ifdef LOG
- syslog(LOG_ERR, "fdopen: %m");
+ syslog(LOG_WARNING, "fdopen: %m");
# else
warn("fdopen");
# endif