summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2015-09-12 13:50:30 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2015-09-12 13:50:30 +0000
commit4e898d9abf63f8f55cb2a706309e95b8cb246094 (patch)
tree6638c7db791ce221ae5d801378200bd822e35385 /usr.sbin
parentcc0808fe71c652b988cef389e141848db2a17375 (diff)
It is not necessary to reset errno to 0 since we use logerrorx().
Spotted by jung@
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/syslogd/syslogd.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/usr.sbin/syslogd/syslogd.c b/usr.sbin/syslogd/syslogd.c
index ddf58107fc2..6a609de9fcb 100644
--- a/usr.sbin/syslogd/syslogd.c
+++ b/usr.sbin/syslogd/syslogd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: syslogd.c,v 1.188 2015/09/11 21:33:16 bluhm Exp $ */
+/* $OpenBSD: syslogd.c,v 1.189 2015/09/12 13:50:29 bluhm Exp $ */
/*
* Copyright (c) 1983, 1988, 1993, 1994
@@ -452,7 +452,6 @@ main(int argc, char *argv[])
if (socket_bind("udp", NULL, "syslog", SecureMode,
&fd_udp, &fd_udp6) == -1) {
- errno = 0;
logerrorx("socket bind *");
if (!Debug)
die(0);
@@ -460,7 +459,6 @@ main(int argc, char *argv[])
fd_bind = -1;
if (bind_host && socket_bind("udp", bind_host, bind_port, 0,
&fd_bind, &fd_bind) == -1) {
- errno = 0;
logerrorx("socket bind udp");
if (!Debug)
die(0);
@@ -468,7 +466,6 @@ main(int argc, char *argv[])
fd_listen = -1;
if (listen_host && socket_bind("tcp", listen_host, listen_port, 0,
&fd_listen, &fd_listen) == -1) {
- errno = 0;
logerrorx("socket listen tcp");
if (!Debug)
die(0);
@@ -531,7 +528,6 @@ main(int argc, char *argv[])
fd = -1;
p = NULL;
- errno = 0;
if ((fd = open(CAfile, O_RDONLY)) == -1) {
logerror("open CAfile");
} else if (fstat(fd, &sb) == -1) {