From 97f995f38ea12324c81a1d133d441e0eb5e6bd71 Mon Sep 17 00:00:00 2001 From: David Schweikert Date: Sat, 11 Jul 2020 15:53:29 +0200 Subject: [PATCH] get rid of deprecated bzero() --- src/fping.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.43.0