summaryrefslogtreecommitdiff
path: root/usr.sbin/syslogc
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/syslogc')
-rw-r--r--usr.sbin/syslogc/syslogc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/syslogc/syslogc.c b/usr.sbin/syslogc/syslogc.c
index ff5a6d1b49e..7cf6d8c115c 100644
--- a/usr.sbin/syslogc/syslogc.c
+++ b/usr.sbin/syslogc/syslogc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: syslogc.c,v 1.10 2005/09/19 23:34:52 djm Exp $ */
+/* $OpenBSD: syslogc.c,v 1.11 2005/09/28 08:49:28 stevesk Exp $ */
/*
* Copyright (c) 2004 Damien Miller
@@ -146,10 +146,10 @@ main(int argc, char **argv)
err(1, "fread header");
if (ntohl(rr.version) != CTL_VERSION)
- err(1, "unsupported syslogd version");
+ errx(1, "unsupported syslogd version");
/* Write out reply */
- while((fgets(buf, sizeof(buf), ctlf)) != NULL)
+ while ((fgets(buf, sizeof(buf), ctlf)) != NULL)
fputs(buf, stdout);
if (oflag && (ntohl(rr.flags) & CTL_HDR_FLAG_OVERFLOW)) {