diff options
author | inoguchi <> | 2019-01-09 12:58:18 +0000 |
---|---|---|
committer | inoguchi <> | 2019-01-09 12:58:18 +0000 |
commit | 387ee612b4875f4548b64da3172c09277a87bd66 (patch) | |
tree | 069a627715a53e6af66a0ac4bcf980093b64cfeb /src/usr.bin/nc | |
parent | 82958711ca2c8dbd836bb5e9dce3efb3b9e0df3c (diff) | |
download | openbsd-387ee612b4875f4548b64da3172c09277a87bd66.tar.gz openbsd-387ee612b4875f4548b64da3172c09277a87bd66.tar.bz2 openbsd-387ee612b4875f4548b64da3172c09277a87bd66.zip |
Include strings.h for bzero in usr.bin/nc
bzero is defined in strings.h.
ok deraadt@
Diffstat (limited to 'src/usr.bin/nc')
-rw-r--r-- | src/usr.bin/nc/netcat.c | 3 | ||||
-rw-r--r-- | src/usr.bin/nc/socks.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/usr.bin/nc/netcat.c b/src/usr.bin/nc/netcat.c index adfad2dcd9..10f5a50def 100644 --- a/src/usr.bin/nc/netcat.c +++ b/src/usr.bin/nc/netcat.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: netcat.c,v 1.200 2018/12/27 17:22:45 tedu Exp $ */ | 1 | /* $OpenBSD: netcat.c,v 1.201 2019/01/09 12:58:18 inoguchi Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2001 Eric Jackson <ericj@monkey.org> | 3 | * Copyright (c) 2001 Eric Jackson <ericj@monkey.org> |
4 | * Copyright (c) 2015 Bob Beck. All rights reserved. | 4 | * Copyright (c) 2015 Bob Beck. All rights reserved. |
@@ -53,6 +53,7 @@ | |||
53 | #include <stdio.h> | 53 | #include <stdio.h> |
54 | #include <stdlib.h> | 54 | #include <stdlib.h> |
55 | #include <string.h> | 55 | #include <string.h> |
56 | #include <strings.h> | ||
56 | #include <time.h> | 57 | #include <time.h> |
57 | #include <tls.h> | 58 | #include <tls.h> |
58 | #include <unistd.h> | 59 | #include <unistd.h> |
diff --git a/src/usr.bin/nc/socks.c b/src/usr.bin/nc/socks.c index 5aa191d284..2855f18536 100644 --- a/src/usr.bin/nc/socks.c +++ b/src/usr.bin/nc/socks.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: socks.c,v 1.25 2018/03/27 16:31:10 deraadt Exp $ */ | 1 | /* $OpenBSD: socks.c,v 1.26 2019/01/09 12:58:18 inoguchi Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Copyright (c) 1999 Niklas Hallqvist. All rights reserved. | 4 | * Copyright (c) 1999 Niklas Hallqvist. All rights reserved. |
@@ -36,6 +36,7 @@ | |||
36 | #include <stdio.h> | 36 | #include <stdio.h> |
37 | #include <stdlib.h> | 37 | #include <stdlib.h> |
38 | #include <string.h> | 38 | #include <string.h> |
39 | #include <strings.h> | ||
39 | #include <unistd.h> | 40 | #include <unistd.h> |
40 | #include <resolv.h> | 41 | #include <resolv.h> |
41 | #include <readpassphrase.h> | 42 | #include <readpassphrase.h> |