diff options
author | guenther <guenther@openbsd.org> | 2018-04-26 12:42:50 +0000 |
---|---|---|
committer | guenther <guenther@openbsd.org> | 2018-04-26 12:42:50 +0000 |
commit | f414793931f0f39a413874f9e342e33d9fd35eac (patch) | |
tree | 2f4a2abfbaa234b7cf3ecdbab222b87a5d01ccb9 /usr.sbin/inetd | |
parent | Do not try getnetbyname(3) if gethostbyname(3) returns no result. (diff) | |
download | wireguard-openbsd-f414793931f0f39a413874f9e342e33d9fd35eac.tar.xz wireguard-openbsd-f414793931f0f39a413874f9e342e33d9fd35eac.zip |
Use <fcntl.h> instead of <sys/file.h> for open() and friends.
Delete a bunch of unnecessary #includes and sort to match style(9)
while doing the above cleanup.
ok deraadt@ krw@
Diffstat (limited to 'usr.sbin/inetd')
-rw-r--r-- | usr.sbin/inetd/inetd.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.sbin/inetd/inetd.c b/usr.sbin/inetd/inetd.c index b399a21311a..fce5fa658d7 100644 --- a/usr.sbin/inetd/inetd.c +++ b/usr.sbin/inetd/inetd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: inetd.c,v 1.158 2017/10/04 23:56:48 jca Exp $ */ +/* $OpenBSD: inetd.c,v 1.159 2018/04/26 12:42:51 guenther Exp $ */ /* * Copyright (c) 1983,1991 The Regents of the University of California. @@ -122,10 +122,8 @@ */ #include <sys/stat.h> -#include <sys/ioctl.h> #include <sys/socket.h> #include <sys/un.h> -#include <sys/file.h> #include <sys/wait.h> #include <sys/time.h> #include <sys/resource.h> |