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/kvm_mkdb | |
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/kvm_mkdb')
-rw-r--r-- | usr.sbin/kvm_mkdb/nlist.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/usr.sbin/kvm_mkdb/nlist.c b/usr.sbin/kvm_mkdb/nlist.c index 4c59441cf63..7745642103e 100644 --- a/usr.sbin/kvm_mkdb/nlist.c +++ b/usr.sbin/kvm_mkdb/nlist.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nlist.c,v 1.51 2017/10/27 16:47:08 mpi Exp $ */ +/* $OpenBSD: nlist.c,v 1.52 2018/04/26 12:42:51 guenther Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -30,8 +30,11 @@ */ #include <sys/types.h> +#include <sys/mman.h> +#include <sys/sysctl.h> #include <db.h> +#include <elf.h> #include <err.h> #include <errno.h> #include <fcntl.h> @@ -45,13 +48,6 @@ #include "extern.h" -#include <sys/mman.h> -#include <sys/stat.h> -#include <sys/file.h> -#include <sys/sysctl.h> - -#include <elf.h> - typedef struct nlist NLIST; #define _strx n_un.n_strx #define _name n_un.n_name |