summaryrefslogtreecommitdiffstats
path: root/hunt/huntd/faketalk.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/faketalk.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/faketalk.c')
-rw-r--r--hunt/huntd/faketalk.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/hunt/huntd/faketalk.c b/hunt/huntd/faketalk.c
index 2044ce1d..f613b3c3 100644
--- a/hunt/huntd/faketalk.c
+++ b/hunt/huntd/faketalk.c
@@ -1,4 +1,4 @@
-/* $NetBSD: faketalk.c,v 1.4 1997/10/11 08:13:48 lukem Exp $ */
+/* $NetBSD: faketalk.c,v 1.5 2001/01/09 23:49:54 lukem Exp $ */
/*
* Hunt
* Copyright (c) 1985 Conrad C. Huang, Gregory S. Couch, Kenneth C.R.C. Arnold
@@ -11,7 +11,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: faketalk.c,v 1.4 1997/10/11 08:13:48 lukem Exp $");
+__RCSID("$NetBSD: faketalk.c,v 1.5 2001/01/09 23:49:54 lukem Exp $");
#endif /* not lint */
#include "bsd.h"
@@ -123,7 +123,7 @@ faketalk()
# else
warn("falktalk: socket");
# endif
- _exit(-1);
+ _exit(1);
}
if (connect(service, (struct sockaddr *) &des, sizeof(des)) != 0) {
@@ -132,7 +132,7 @@ faketalk()
# else
warn("faketalk: connect");
# endif
- _exit(-1);
+ _exit(1);
}
if ((f = fdopen(service, "r")) == NULL) {
# ifdef LOG
@@ -140,7 +140,7 @@ faketalk()
# else
warn("faketalk: fdopen");
# endif
- _exit(-2);
+ _exit(2);
}
(void) fgets(buf, BUFSIZ, f);