Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/route6d port numbers are unsigned. use %u. from kame
details: https://anonhg.NetBSD.org/src/rev/69539c0ea394
branches: trunk
changeset: 546192:69539c0ea394
user: itojun <itojun%NetBSD.org@localhost>
date: Tue Apr 22 09:56:30 2003 +0000
description:
port numbers are unsigned. use %u. from kame
diffstat:
usr.sbin/route6d/route6d.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r dce2abda6212 -r 69539c0ea394 usr.sbin/route6d/route6d.c
--- a/usr.sbin/route6d/route6d.c Tue Apr 22 08:53:02 2003 +0000
+++ b/usr.sbin/route6d/route6d.c Tue Apr 22 09:56:30 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: route6d.c,v 1.45 2003/04/15 07:23:20 itojun Exp $ */
+/* $NetBSD: route6d.c,v 1.46 2003/04/22 09:56:30 itojun Exp $ */
/* $KAME: route6d.c,v 1.94 2002/10/26 20:08:55 itojun Exp $ */
/*
@@ -32,7 +32,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: route6d.c,v 1.45 2003/04/15 07:23:20 itojun Exp $");
+__RCSID("$NetBSD: route6d.c,v 1.46 2003/04/22 09:56:30 itojun Exp $");
#endif
#include <stdio.h>
@@ -570,7 +570,7 @@
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;
@@ -1051,7 +1051,7 @@
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;
}
Home |
Main Index |
Thread Index |
Old Index