summaryrefslogtreecommitdiff
path: root/usr.sbin/syslogc
diff options
context:
space:
mode:
authorKevin Steves <stevesk@cvs.openbsd.org>2005-09-28 08:49:29 +0000
committerKevin Steves <stevesk@cvs.openbsd.org>2005-09-28 08:49:29 +0000
commitc6750b559135ee117ddf6558eef6ad8b7f80d7e2 (patch)
tree65a8a26c5c3bf075521d7723890e012317c16c5f /usr.sbin/syslogc
parent6337dbe22b7134a1e7b2d8941a9f7f432000388c (diff)
err()->errx() and KNF; ok djm@
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)) {