From 61eddd59dac1cc0a63ae03c014713e9b3a769b8e Mon Sep 17 00:00:00 2001 From: lukem Date: Tue, 9 Jan 2001 23:49:54 +0000 Subject: - 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() --- hunt/huntd/faketalk.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'hunt/huntd/faketalk.c') 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 #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); -- cgit v1.2.3-56-ge451