diff options
author | 2018-04-26 12:42:50 +0000 | |
---|---|---|
committer | 2018-04-26 12:42:50 +0000 | |
commit | f414793931f0f39a413874f9e342e33d9fd35eac (patch) | |
tree | 2f4a2abfbaa234b7cf3ecdbab222b87a5d01ccb9 /usr.bin/patch/inp.c | |
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.bin/patch/inp.c')
-rw-r--r-- | usr.bin/patch/inp.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.bin/patch/inp.c b/usr.bin/patch/inp.c index 45f89d29d49..178e365f144 100644 --- a/usr.bin/patch/inp.c +++ b/usr.bin/patch/inp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: inp.c,v 1.47 2017/03/25 23:13:45 deraadt Exp $ */ +/* $OpenBSD: inp.c,v 1.48 2018/04/26 12:42:51 guenther Exp $ */ /* * patch - a program to apply diffs to original files @@ -26,13 +26,11 @@ * behaviour */ -#include <sys/types.h> -#include <sys/file.h> #include <sys/stat.h> #include <sys/mman.h> #include <ctype.h> -#include <libgen.h> +#include <fcntl.h> #include <stddef.h> #include <stdint.h> #include <stdio.h> |