summaryrefslogtreecommitdiffstats
path: root/hunt/huntd/answer.c
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2014-03-29 22:29:55 +0000
committerdholland <dholland@NetBSD.org>2014-03-29 22:29:55 +0000
commit01c156137af771211dcc8c7bedbe4121c12f22b8 (patch)
treea35c47e5d06a59a4ece1e325c567ade712583388 /hunt/huntd/answer.c
parent18db53a64319b86ed429e171bc3a52f4b3bc74f2 (diff)
downloadbsdgames-darwin-01c156137af771211dcc8c7bedbe4121c12f22b8.tar.gz
bsdgames-darwin-01c156137af771211dcc8c7bedbe4121c12f22b8.zip
Reduce ifdefs by making a common function to talk to either syslogd or
stderr.
Diffstat (limited to 'hunt/huntd/answer.c')
-rw-r--r--hunt/huntd/answer.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/hunt/huntd/answer.c b/hunt/huntd/answer.c
index da040f19..df3dd045 100644
--- a/hunt/huntd/answer.c
+++ b/hunt/huntd/answer.c
@@ -1,4 +1,4 @@
-/* $NetBSD: answer.c,v 1.17 2014/03/29 19:41:10 dholland Exp $ */
+/* $NetBSD: answer.c,v 1.18 2014/03/29 22:29:55 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: answer.c,v 1.17 2014/03/29 19:41:10 dholland Exp $");
+__RCSID("$NetBSD: answer.c,v 1.18 2014/03/29 22:29:55 dholland Exp $");
#endif /* not lint */
#include <ctype.h>
@@ -79,11 +79,7 @@ answer(void)
{
if (errno == EINTR)
return false;
-#ifdef LOG
- syslog(LOG_ERR, "accept: %m");
-#else
- perror("accept");
-#endif
+ complain(LOG_ERR, "accept");
cleanup(1);
}