summaryrefslogtreecommitdiffstats
path: root/usr.sbin/authpf
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2018-04-26 12:42:50 +0000
committerguenther <guenther@openbsd.org>2018-04-26 12:42:50 +0000
commitf414793931f0f39a413874f9e342e33d9fd35eac (patch)
tree2f4a2abfbaa234b7cf3ecdbab222b87a5d01ccb9 /usr.sbin/authpf
parentDo not try getnetbyname(3) if gethostbyname(3) returns no result. (diff)
downloadwireguard-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/authpf')
-rw-r--r--usr.sbin/authpf/authpf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/authpf/authpf.c b/usr.sbin/authpf/authpf.c
index dc24ec4a008..f8039ab0891 100644
--- a/usr.sbin/authpf/authpf.c
+++ b/usr.sbin/authpf/authpf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: authpf.c,v 1.126 2018/01/16 17:07:49 cheloha Exp $ */
+/* $OpenBSD: authpf.c,v 1.127 2018/04/26 12:42:51 guenther Exp $ */
/*
* Copyright (C) 1998 - 2007 Bob Beck (beck@openbsd.org).
@@ -17,7 +17,6 @@
*/
#include <sys/types.h>
-#include <sys/file.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <sys/stat.h>
@@ -30,6 +29,7 @@
#include <err.h>
#include <errno.h>
+#include <fcntl.h>
#include <login_cap.h>
#include <pwd.h>
#include <grp.h>