]> git.gsnw.org Git - fping.git/commitdiff
get rid of deprecated bzero()
authorDavid Schweikert <david@schweikert.ch>
Sat, 11 Jul 2020 13:53:29 +0000 (15:53 +0200)
committerDavid Schweikert <david@schweikert.ch>
Sat, 11 Jul 2020 13:53:29 +0000 (15:53 +0200)
src/fping.c

index 214a3ed959981005d3037bf57dea68f1b1421800..7d6aa16660fe446964ffe315a0de719ff6a0f2e9 100644 (file)
@@ -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;