From: David Schweikert Date: Sat, 11 Jul 2020 13:53:29 +0000 (+0200) Subject: get rid of deprecated bzero() X-Git-Url: https://git.gsnw.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=97f995f38ea12324c81a1d133d441e0eb5e6bd71;p=fping.git get rid of deprecated bzero() --- diff --git a/src/fping.c b/src/fping.c index 214a3ed..7d6aa16 100644 --- a/src/fping.c +++ b/src/fping.c @@ -2321,7 +2321,7 @@ void add_name(char* name) char addrbuf[256]; /* getaddrinfo */ - bzero(&hints, sizeof(struct addrinfo)); + memset(&hints, 0, sizeof(struct addrinfo)); hints.ai_flags = AI_UNUSABLE; hints.ai_socktype = SOCK_RAW; hints.ai_family = hints_ai_family;