mirror of
https://github.com/openbsd/src.git
synced 2025-01-03 06:45:37 -08:00
err()->errx() and KNF; ok djm@
This commit is contained in:
parent
805b820e08
commit
8df5ec29b4
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user