diff options
Diffstat (limited to 'docs')
-rw-r--r-- | docs/ipv4_ipv6.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/ipv4_ipv6.txt b/docs/ipv4_ipv6.txt index e83db0dbd..92010b59c 100644 --- a/docs/ipv4_ipv6.txt +++ b/docs/ipv4_ipv6.txt | |||
@@ -166,7 +166,7 @@ Modified IPv6-aware C code: | |||
166 | int error; | 166 | int error; |
167 | 167 | ||
168 | /* Get host address. Any type of address will do. */ | 168 | /* Get host address. Any type of address will do. */ |
169 | bzero(&hints, sizeof(hints)); | 169 | memset(&hints, 0, sizeof(hints)); |
170 | hints.ai_flags = AI_ALL|AI_ADDRCONFIG; | 170 | hints.ai_flags = AI_ALL|AI_ADDRCONFIG; |
171 | hints.ai_socktype = SOCK_STREAM; | 171 | hints.ai_socktype = SOCK_STREAM; |
172 | 172 | ||