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/tftp/main.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/tftp/main.c')
-rw-r--r-- | usr.bin/tftp/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tftp/main.c b/usr.bin/tftp/main.c index 546684b885a..0f85ecb60d3 100644 --- a/usr.bin/tftp/main.c +++ b/usr.bin/tftp/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.41 2017/01/21 11:32:04 guenther Exp $ */ +/* $OpenBSD: main.c,v 1.42 2018/04/26 12:42:51 guenther Exp $ */ /* $NetBSD: main.c,v 1.6 1995/05/21 16:54:10 mycroft Exp $ */ /* @@ -37,7 +37,6 @@ */ #include <sys/socket.h> -#include <sys/file.h> #include <netinet/in.h> #include <arpa/inet.h> @@ -46,6 +45,7 @@ #include <ctype.h> #include <err.h> #include <errno.h> +#include <fcntl.h> #include <netdb.h> #include <poll.h> #include <signal.h> |