diff options
| author | 2016-04-02 19:55:10 +0000 | |
|---|---|---|
| committer | 2016-04-02 19:55:10 +0000 | |
| commit | 7bb95e134aa2b81e0734e7d94e7e653651bac06c (patch) | |
| tree | 4ef6e7b7433b2a620ee52ee5170432f62e7556f1 /usr.sbin/syslogd/ttymsg.c | |
| parent | Eliminate the need to explicitly invoke syscalls via their _thread_sys_* (diff) | |
| download | wireguard-openbsd-7bb95e134aa2b81e0734e7d94e7e653651bac06c.tar.xz wireguard-openbsd-7bb95e134aa2b81e0734e7d94e7e653651bac06c.zip | |
Eliminate superfluous 3rd params in fcntl(F_GETFL) calls.
ttymsg.c doesn't need to include fcntl.h.
Tweak standard fd sanitising to be more like the sanitise_stdfd()
used elsewhere, though other uses of 'nullfd' make importing
sanitise_stdfd() itself unappetizing.
Add a die(0) if dup2() fails.
suggestions & ok bluhm@
Diffstat (limited to 'usr.sbin/syslogd/ttymsg.c')
| -rw-r--r-- | usr.sbin/syslogd/ttymsg.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.sbin/syslogd/ttymsg.c b/usr.sbin/syslogd/ttymsg.c index ef50b3927e2..e899c786973 100644 --- a/usr.sbin/syslogd/ttymsg.c +++ b/usr.sbin/syslogd/ttymsg.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ttymsg.c,v 1.9 2015/10/23 16:28:52 bluhm Exp $ */ +/* $OpenBSD: ttymsg.c,v 1.10 2016/04/02 19:55:10 krw Exp $ */ /* $NetBSD: ttymsg.c,v 1.3 1994/11/17 07:17:55 jtc Exp $ */ /* @@ -36,7 +36,6 @@ #include <dirent.h> #include <errno.h> #include <event.h> -#include <fcntl.h> #include <paths.h> #include <signal.h> #include <stdio.h> |
