get rid of deprecated bzero()

pull/187/head
David Schweikert 4 years ago
parent efc5ed3263
commit 97f995f38e

@ -2321,7 +2321,7 @@ void add_name(char* name)
char addrbuf[256]; char addrbuf[256];
/* getaddrinfo */ /* getaddrinfo */
bzero(&hints, sizeof(struct addrinfo)); memset(&hints, 0, sizeof(struct addrinfo));
hints.ai_flags = AI_UNUSABLE; hints.ai_flags = AI_UNUSABLE;
hints.ai_socktype = SOCK_RAW; hints.ai_socktype = SOCK_RAW;
hints.ai_family = hints_ai_family; hints.ai_family = hints_ai_family;

Loading…
Cancel
Save