diff options
author | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2002-09-08 01:36:38 +0000 |
---|---|---|
committer | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2002-09-08 01:36:38 +0000 |
commit | 2294e26524e0b551fe55591783e8f6c7d6c818a7 (patch) | |
tree | fc7d4fee8cc504ff87bd33e8164208a96b593ff0 /usr.sbin/rip6query | |
parent | 7a1445fdb0f6bbb3b5efe454a02a95cc7195a926 (diff) |
socklen_t audit. from deraadt.
Diffstat (limited to 'usr.sbin/rip6query')
-rw-r--r-- | usr.sbin/rip6query/rip6query.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/usr.sbin/rip6query/rip6query.c b/usr.sbin/rip6query/rip6query.c index 7632cbcecb7..5836addcd73 100644 --- a/usr.sbin/rip6query/rip6query.c +++ b/usr.sbin/rip6query/rip6query.c @@ -1,5 +1,5 @@ -/* $OpenBSD: rip6query.c,v 1.7 2002/06/02 06:42:29 deraadt Exp $ */ -/* $KAME: rip6query.c,v 1.15 2001/11/16 07:01:21 itojun Exp $ */ +/* $OpenBSD: rip6query.c,v 1.8 2002/09/08 01:36:37 itojun Exp $ */ +/* $KAME: rip6query.c,v 1.17 2002/09/08 01:35:17 itojun Exp $ */ /* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -76,7 +76,8 @@ main(argc, argv) { struct netinfo6 *np; struct sockaddr_in6 fsock; - int i, n, len, flen; + int i, n, len; + socklen_t flen; int c; int ifidx = -1; int error; @@ -173,7 +174,7 @@ main(argc, argv) printf("\t%s/%d [%d]", inet6_n2a(&np->rip6_dest), np->rip6_plen, np->rip6_metric); if (np->rip6_tag) - printf(" tag=0x%x", ntohs(np->rip6_tag)); + printf(" tag=0x%x", ntohs(np->rip6_tag)); printf("\n"); } } |