X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fnetutl.c;fp=src%2Fnetutl.c;h=3c2a77dfebfdbd6a41ef7c37e63679e06eed71ef;hp=abe3d876535319e20dc4a10665b8fe000b114ce5;hb=2116c6eb7d328c7aa3ce3da54f95367e5199d373;hpb=aaa17884166350b60ab5896bcf408eea665a0404 diff --git a/src/netutl.c b/src/netutl.c index abe3d876..3c2a77df 100644 --- a/src/netutl.c +++ b/src/netutl.c @@ -33,7 +33,7 @@ bool hostnames = false; Return NULL on failure. */ struct addrinfo *str2addrinfo(const char *address, const char *service, int socktype) { - struct addrinfo *ai = NULL, hint = {0}; + struct addrinfo *ai = NULL, hint = {}; int err; hint.ai_family = addressfamily; @@ -55,7 +55,7 @@ struct addrinfo *str2addrinfo(const char *address, const char *service, int sock } sockaddr_t str2sockaddr(const char *address, const char *port) { - struct addrinfo *ai = NULL, hint = {0}; + struct addrinfo *ai = NULL, hint = {}; sockaddr_t result; int err;