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/mopd | |
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/mopd')
-rw-r--r-- | usr.sbin/mopd/common/pf.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/usr.sbin/mopd/common/pf.c b/usr.sbin/mopd/common/pf.c index d38b1095e9d..7bcf73d426c 100644 --- a/usr.sbin/mopd/common/pf.c +++ b/usr.sbin/mopd/common/pf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf.c,v 1.17 2017/04/19 05:36:13 natano Exp $ */ +/* $OpenBSD: pf.c,v 1.18 2018/04/26 12:42:51 guenther Exp $ */ /* * Copyright (c) 1993-95 Mats O Jansson. All rights reserved. @@ -28,12 +28,9 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include <stdio.h> -#include <unistd.h> #include <sys/types.h> #include <sys/time.h> #include <sys/ioctl.h> -#include <sys/file.h> #include <sys/socket.h> #include <sys/uio.h> #include <net/if.h> @@ -48,8 +45,10 @@ #include <string.h> #include <err.h> #include <errno.h> - +#include <fcntl.h> +#include <stdio.h> #include <syslog.h> +#include <unistd.h> #include "common/mopdef.h" |