diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-06-30 06:33:32 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-06-30 06:33:32 +0000 |
commit | 722e2502929b968b9c98b3efa3188eb94e861489 (patch) | |
tree | df89954446f78688bea06c8ee58b0dcbbb9c8e7b /sbin/routed/rtquery/rtquery.c | |
parent | eaf6b9b82d30198b02e70a7536fcd28b7c264a7a (diff) |
s_addr is not long
Diffstat (limited to 'sbin/routed/rtquery/rtquery.c')
-rw-r--r-- | sbin/routed/rtquery/rtquery.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/routed/rtquery/rtquery.c b/sbin/routed/rtquery/rtquery.c index 5d9273486cd..07411c8285e 100644 --- a/sbin/routed/rtquery/rtquery.c +++ b/sbin/routed/rtquery/rtquery.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rtquery.c,v 1.5 1997/01/17 07:12:25 millert Exp $ */ +/* $OpenBSD: rtquery.c,v 1.6 1997/06/30 06:33:31 deraadt Exp $ */ /*- * Copyright (c) 1982, 1986, 1993 @@ -524,7 +524,7 @@ rip_input(struct sockaddr_in *from, * good guess. */ if ((in.s_addr & ~mask) == 0) { - np = getnetbyaddr((long)in.s_addr, + np = getnetbyaddr(in.s_addr, AF_INET); if (np != 0) name = np->n_name; |