diff options
author | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2003-04-22 09:57:05 +0000 |
---|---|---|
committer | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2003-04-22 09:57:05 +0000 |
commit | 7034fde7603acf799a86101cae9440c517beb20e (patch) | |
tree | 14b856072c25ce387b86998cfbacfdecb3850942 /usr.sbin/route6d/route6d.c | |
parent | 1dc8dca82f4f0c2a07b44f30770793f9a1d49d8c (diff) |
port numbers are unsigned. use %u. from kame
Diffstat (limited to 'usr.sbin/route6d/route6d.c')
-rw-r--r-- | usr.sbin/route6d/route6d.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/route6d/route6d.c b/usr.sbin/route6d/route6d.c index 42ddd54c3f5..d523f5cd8b3 100644 --- a/usr.sbin/route6d/route6d.c +++ b/usr.sbin/route6d/route6d.c @@ -1,4 +1,4 @@ -/* $OpenBSD: route6d.c,v 1.35 2003/04/15 07:22:46 itojun Exp $ */ +/* $OpenBSD: route6d.c,v 1.36 2003/04/22 09:57:04 itojun Exp $ */ /* $KAME: route6d.c,v 1.94 2002/10/26 20:08:55 itojun Exp $ */ /* @@ -31,7 +31,7 @@ */ #if 0 -static char _rcsid[] = "$OpenBSD: route6d.c,v 1.35 2003/04/15 07:22:46 itojun Exp $"; +static char _rcsid[] = "$OpenBSD: route6d.c,v 1.36 2003/04/22 09:57:04 itojun Exp $"; #endif #include <stdio.h> @@ -593,7 +593,7 @@ init() nifc = 0; nindex2ifc = 0; /*initial guess*/ index2ifc = NULL; - snprintf(port, sizeof(port), "%d", RIP6_PORT); + snprintf(port, sizeof(port), "%u", RIP6_PORT); memset(&hints, 0, sizeof(hints)); hints.ai_family = PF_INET6; @@ -1114,7 +1114,7 @@ riprecv() rp = (struct rip6 *)buf; np = rp->rip6_nets; - if (rp->rip6_vers != RIP6_VERSION) { + if (rp->rip6_vers != RIP6_VERSION) { trace(1, "Incorrect RIP version %d\n", rp->rip6_vers); return; } |