diff options
author | kn <kn@cvs.openbsd.org> | 2018-07-11 15:25:43 +0000 |
---|---|---|
committer | kn <kn@cvs.openbsd.org> | 2018-07-11 15:25:43 +0000 |
commit | af58993866db87b347d702544285c5dae237ebaa (patch) | |
tree | d622c5a4f17524fddb955dce7fae75617baf506c | |
parent | 17d192c6904b01b941441221fa2e39541ea31943 (diff) |
Use AF_UNSPEC not 0
-rw-r--r-- | sbin/route/route.c | 4 |
1 files 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); |