summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2004-01-05 02:21:07 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2004-01-05 02:21:07 +0000
commit554ea1a4bf9e80c4a3c17b2af21b3672ca36ea02 (patch)
treea8ae66a90693468bf195281dea76e9843658763d /usr.sbin
parent5c2e126e074747799688742fdd669206e21a9e38 (diff)
excessively detailed error messages are not unix
Diffstat (limited to 'usr.sbin')
-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 41d28093292..e76ae2d6923 100644
--- a/usr.sbin/syslogc/syslogc.c
+++ b/usr.sbin/syslogc/syslogc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: syslogc.c,v 1.1 2004/01/04 08:30:21 djm Exp $ */
+/* $OpenBSD: syslogc.c,v 1.2 2004/01/05 02:21:06 deraadt Exp $ */
/*
* Copyright (c) 2004 Damien Miller
@@ -106,9 +106,9 @@ main(int argc, char **argv)
ctl.sun_family = AF_UNIX;
if ((ctlsock = socket(PF_UNIX, SOCK_STREAM, 0)) < 0)
- err(1, "ctl socket() error");
+ err(1, "socket");
if (connect(ctlsock, (struct sockaddr*)&ctl, sizeof(ctl)) == -1)
- err(1, "ctl connect(\"%s\") error", ctl.sun_path);
+ err(1, "%s", ctl.sun_path);
if ((ctlf = fdopen(ctlsock, "r+")) == NULL)
err(1, "fdopen");
/* Send command */