From ecb9f85737681765c5a53fd5cef159eeb25ad59e Mon Sep 17 00:00:00 2001 From: itojun Date: Tue, 10 Oct 2000 13:03:27 +0000 Subject: [PATCH] cast size_t to u_long on printing. sync with kame --- usr.sbin/route6d/route6d.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/usr.sbin/route6d/route6d.c b/usr.sbin/route6d/route6d.c index e8509e2f1760..dd9f72c477f4 100644 --- a/usr.sbin/route6d/route6d.c +++ b/usr.sbin/route6d/route6d.c @@ -1,5 +1,5 @@ -/* $NetBSD: route6d.c,v 1.18 2000/10/06 00:13:02 itojun Exp $ */ -/* $KAME: route6d.c,v 1.36 2000/10/05 22:20:39 itojun Exp $ */ +/* $NetBSD: route6d.c,v 1.19 2000/10/10 13:03:27 itojun Exp $ */ +/* $KAME: route6d.c,v 1.37 2000/10/10 13:02:30 itojun Exp $ */ /* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -32,7 +32,7 @@ #include #ifndef lint -__RCSID("$NetBSD: route6d.c,v 1.18 2000/10/06 00:13:02 itojun Exp $"); +__RCSID("$NetBSD: route6d.c,v 1.19 2000/10/10 13:03:27 itojun Exp $"); #endif #include @@ -1460,8 +1460,8 @@ rtrecv() exit(-1); } if (len < sizeof(*rtm)) { - trace(1, "short read from rtsock: %d (should be > %d)\n", - len, sizeof(*rtm)); + trace(1, "short read from rtsock: %d (should be > %lu)\n", + len, (u_long)sizeof(*rtm)); return; } @@ -2221,7 +2221,8 @@ krtread(again) } } while (retry < 5 && errmsg != NULL); if (errmsg) - fatal("%s (with %d retries, msize=%d)", errmsg, retry, msize); + fatal("%s (with %d retries, msize=%lu)", errmsg, retry, + (u_long)msize); else if (1 < retry) syslog(LOG_INFO, "NET_RT_DUMP %d retires", retry);