summaryrefslogtreecommitdiffstats
path: root/bin/csh/csh.c
diff options
context:
space:
mode:
authorkrw <krw@openbsd.org>2016-03-19 15:42:38 +0000
committerkrw <krw@openbsd.org>2016-03-19 15:42:38 +0000
commit1b78e8120e85dd92781c82a689c0b9b4935f32a8 (patch)
tree08a8ba6d27a5cdf6ac565de7e3d89c78d1fcef37 /bin/csh/csh.c
parentDo not run into sdgetdisklabel() when scsi disk is dying. Add (diff)
downloadwireguard-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.c3
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>