-/* $OpenBSD: parse.y,v 1.23 2017/01/20 11:55:08 benno Exp $ */
+/* $OpenBSD: parse.y,v 1.24 2017/04/06 12:22:32 gsoares Exp $ */
/*
* Copyright (c) 2009, 2010 Martin Hedenfalk <martinh@openbsd.org>
struct sockaddr_in *sain;
struct listener *h;
- bzero(&ina, sizeof(ina));
+ memset(&ina, 0, sizeof(ina));
if (inet_pton(AF_INET, s, &ina) != 1)
return (NULL);
struct sockaddr_in6 *sin6;
struct listener *h;
- bzero(&ina6, sizeof(ina6));
+ memset(&ina6, 0, sizeof(ina6));
if (inet_pton(AF_INET6, s, &ina6) != 1)
return (NULL);
struct sockaddr_in6 *sin6;
struct listener *h;
- bzero(&hints, sizeof(hints));
+ memset(&hints, 0, sizeof(hints));
hints.ai_family = PF_UNSPEC;
hints.ai_socktype = SOCK_DGRAM; /* DUMMY */
error = getaddrinfo(s, NULL, &hints, &res0);