diff options
| author | dholland <dholland@NetBSD.org> | 2014-03-29 22:29:55 +0000 |
|---|---|---|
| committer | dholland <dholland@NetBSD.org> | 2014-03-29 22:29:55 +0000 |
| commit | 01c156137af771211dcc8c7bedbe4121c12f22b8 (patch) | |
| tree | a35c47e5d06a59a4ece1e325c567ade712583388 /hunt/huntd/answer.c | |
| parent | 18db53a64319b86ed429e171bc3a52f4b3bc74f2 (diff) | |
| download | bsdgames-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.c | 10 |
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); } |
