diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-01-05 02:21:07 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-01-05 02:21:07 +0000 |
commit | 554ea1a4bf9e80c4a3c17b2af21b3672ca36ea02 (patch) | |
tree | a8ae66a90693468bf195281dea76e9843658763d /usr.sbin | |
parent | 5c2e126e074747799688742fdd669206e21a9e38 (diff) |
excessively detailed error messages are not unix
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/syslogc/syslogc.c | 6 |
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 */ |