From: kn Date: Wed, 11 Jul 2018 15:25:42 +0000 (+0000) Subject: Use AF_UNSPEC not 0 X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=6e0320a70f107af4d7dab6888a5b2420976ef233;p=openbsd Use AF_UNSPEC not 0 --- diff --git a/sbin/route/route.c b/sbin/route/route.c index d66cca6044e..a0ac03c646a 100644 --- a/sbin/route/route.c +++ b/sbin/route/route.c @@ -1,4 +1,4 @@ -/* $OpenBSD: route.c,v 1.217 2018/07/10 13:11:38 kn Exp $ */ +/* $OpenBSD: route.c,v 1.218 2018/07/11 15:25:42 kn Exp $ */ /* $NetBSD: route.c,v 1.16 1996/04/15 18:27:05 cgd Exp $ */ /* @@ -853,7 +853,7 @@ getaddr(int which, int af, char *s, struct hostent **hpp) int afamily, bits, irc; in_addr_t addr; - if (af == 0) { + if (af == AF_UNSPEC) { if (strchr(s, ':') != NULL) { af = AF_INET6; aflen = sizeof(struct sockaddr_in6);