diff options
author | Kinichiro Inoguchi <inoguchi@cvs.openbsd.org> | 2019-01-09 12:58:19 +0000 |
---|---|---|
committer | Kinichiro Inoguchi <inoguchi@cvs.openbsd.org> | 2019-01-09 12:58:19 +0000 |
commit | 1aa0f42f65bd25228eb6a6534d8ca2965421c030 (patch) | |
tree | b0493a9d17c40e6efefa3121135a318730fe1b97 | |
parent | fa9cd69900b76b464b1d013b72e9bb0bfc0f61fe (diff) |
Include strings.h for bzero in usr.bin/nc
bzero is defined in strings.h.
ok deraadt@
-rw-r--r-- | usr.bin/nc/netcat.c | 3 | ||||
-rw-r--r-- | usr.bin/nc/socks.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/nc/netcat.c b/usr.bin/nc/netcat.c index adfad2dcd91..10f5a50def6 100644 --- a/usr.bin/nc/netcat.c +++ b/usr.bin/nc/netcat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: netcat.c,v 1.200 2018/12/27 17:22:45 tedu Exp $ */ +/* $OpenBSD: netcat.c,v 1.201 2019/01/09 12:58:18 inoguchi Exp $ */ /* * Copyright (c) 2001 Eric Jackson <ericj@monkey.org> * Copyright (c) 2015 Bob Beck. All rights reserved. @@ -53,6 +53,7 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> +#include <strings.h> #include <time.h> #include <tls.h> #include <unistd.h> diff --git a/usr.bin/nc/socks.c b/usr.bin/nc/socks.c index 5aa191d2840..2855f18536d 100644 --- a/usr.bin/nc/socks.c +++ b/usr.bin/nc/socks.c @@ -1,4 +1,4 @@ -/* $OpenBSD: socks.c,v 1.25 2018/03/27 16:31:10 deraadt Exp $ */ +/* $OpenBSD: socks.c,v 1.26 2019/01/09 12:58:18 inoguchi Exp $ */ /* * Copyright (c) 1999 Niklas Hallqvist. All rights reserved. @@ -36,6 +36,7 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> +#include <strings.h> #include <unistd.h> #include <resolv.h> #include <readpassphrase.h> |