summaryrefslogtreecommitdiff
path: root/usr.sbin/syslogc
diff options
context:
space:
mode:
authorDamien Miller <djm@cvs.openbsd.org>2005-04-03 03:42:48 +0000
committerDamien Miller <djm@cvs.openbsd.org>2005-04-03 03:42:48 +0000
commitd335ad8f466dc9d775905711ae059a0b68d4b2fc (patch)
tree575557e1d435d61d71f3765dfd24c401ecf69f89 /usr.sbin/syslogc
parentb6dc95251a8aa6c607dcb85f78ca2049dab538f7 (diff)
kill redundant warning - getopt does it for us; from andrushock AT korovino.net
Diffstat (limited to 'usr.sbin/syslogc')
-rw-r--r--usr.sbin/syslogc/syslogc.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/syslogc/syslogc.c b/usr.sbin/syslogc/syslogc.c
index 80a3d0997a6..9a219721934 100644
--- a/usr.sbin/syslogc/syslogc.c
+++ b/usr.sbin/syslogc/syslogc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: syslogc.c,v 1.8 2004/09/14 22:33:38 deraadt Exp $ */
+/* $OpenBSD: syslogc.c,v 1.9 2005/04/03 03:42:47 djm Exp $ */
/*
* Copyright (c) 2004 Damien Miller
@@ -108,7 +108,6 @@ main(int argc, char **argv)
ctlsock_path = optarg;
break;
default:
- fprintf(stderr, "Invalid commandline option.\n");
usage();
break;
}
@@ -133,7 +132,7 @@ main(int argc, char **argv)
if ((ctlsock = socket(PF_UNIX, SOCK_STREAM, 0)) == -1)
err(1, "socket");
- if (connect(ctlsock, (struct sockaddr*)&ctl, sizeof(ctl)) == -1)
+ if (connect(ctlsock, (struct sockaddr *)&ctl, sizeof(ctl)) == -1)
err(1, "connect: %s", ctl.sun_path);
if ((ctlf = fdopen(ctlsock, "r+")) == NULL)
err(1, "fdopen");