From 6e0320a70f107af4d7dab6888a5b2420976ef233 Mon Sep 17 00:00:00 2001 From: kn Date: Wed, 11 Jul 2018 15:25:42 +0000 Subject: [PATCH] Use AF_UNSPEC not 0 --- sbin/route/route.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.20.1