diff options
author | 2016-03-19 15:42:38 +0000 | |
---|---|---|
committer | 2016-03-19 15:42:38 +0000 | |
commit | 1b78e8120e85dd92781c82a689c0b9b4935f32a8 (patch) | |
tree | 08a8ba6d27a5cdf6ac565de7e3d89c78d1fcef37 /bin/csh/csh.c | |
parent | Do not run into sdgetdisklabel() when scsi disk is dying. Add (diff) | |
download | wireguard-openbsd-1b78e8120e85dd92781c82a689c0b9b4935f32a8.tar.xz wireguard-openbsd-1b78e8120e85dd92781c82a689c0b9b4935f32a8.zip |
Turn off the close-on-exec bit with fcntl() instead of ioctl().
Remove some now useless "#include <ioctl.h>" lines.
Inspired by & ok millert@
Diffstat (limited to 'bin/csh/csh.c')
-rw-r--r-- | bin/csh/csh.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bin/csh/csh.c b/bin/csh/csh.c index 37619f4d21b..08275b83bd7 100644 --- a/bin/csh/csh.c +++ b/bin/csh/csh.c @@ -1,4 +1,4 @@ -/* $OpenBSD: csh.c,v 1.38 2016/03/18 15:16:07 millert Exp $ */ +/* $OpenBSD: csh.c,v 1.39 2016/03/19 15:42:38 krw Exp $ */ /* $NetBSD: csh.c,v 1.14 1995/04/29 23:21:28 mycroft Exp $ */ /*- @@ -31,7 +31,6 @@ */ #include <sys/types.h> -#include <sys/ioctl.h> #include <sys/stat.h> #include <fcntl.h> #include <errno.h> |