summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/syslog.c
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>1998-03-19 00:29:51 +0000
committermillert <millert@openbsd.org>1998-03-19 00:29:51 +0000
commitdfa5a4f6e3a2e75d92d79ce0e572feb85230a557 (patch)
treeedbbc806584b9a4898b296c427abdb5c7f559aea /lib/libc/gen/syslog.c
parentSome -Wall (diff)
downloadwireguard-openbsd-dfa5a4f6e3a2e75d92d79ce0e572feb85230a557.tar.xz
wireguard-openbsd-dfa5a4f6e3a2e75d92d79ce0e572feb85230a557.zip
some -Wall
Diffstat (limited to 'lib/libc/gen/syslog.c')
-rw-r--r--lib/libc/gen/syslog.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libc/gen/syslog.c b/lib/libc/gen/syslog.c
index c6e3e34b1b2..d1bb6af360e 100644
--- a/lib/libc/gen/syslog.c
+++ b/lib/libc/gen/syslog.c
@@ -32,7 +32,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: syslog.c,v 1.7 1998/03/06 02:01:38 brian Exp $";
+static char rcsid[] = "$OpenBSD: syslog.c,v 1.8 1998/03/19 00:30:03 millert Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
@@ -262,13 +262,14 @@ openlog(ident, logstat, logfac)
(void)fcntl(LogFile, F_SETFD, 1);
}
}
- if (LogFile != -1 && !connected)
+ if (LogFile != -1 && !connected) {
if (connect(LogFile, (struct sockaddr *)&SyslogAddr,
sizeof(SyslogAddr)) == -1) {
(void)close(LogFile);
LogFile = -1;
} else
connected = 1;
+ }
}
void