summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2000-10-10 13:06:30 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2000-10-10 13:06:30 +0000
commit0d097066b7dd878d362fb914ef9b5194ca8ffd6e (patch)
tree112df1dd14109df2252a67d10b218bd2f31cb032 /usr.sbin
parentacb12b0791b377f378715a4b6ffe8f70a4a276a8 (diff)
cast size_t to u_long on printing, be friendly with alpha. sync with kame
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/route6d/route6d.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/usr.sbin/route6d/route6d.c b/usr.sbin/route6d/route6d.c
index 54d2a2f4d64..c906ccb95d6 100644
--- a/usr.sbin/route6d/route6d.c
+++ b/usr.sbin/route6d/route6d.c
@@ -1,5 +1,5 @@
-/* $OpenBSD: route6d.c,v 1.10 2000/10/06 02:46:58 itojun Exp $ */
-/* $KAME: route6d.c,v 1.36 2000/10/05 22:20:39 itojun Exp $ */
+/* $OpenBSD: route6d.c,v 1.11 2000/10/10 13:06:29 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.
@@ -31,7 +31,7 @@
*/
#if 0
-static char _rcsid[] = "$OpenBSD: route6d.c,v 1.10 2000/10/06 02:46:58 itojun Exp $";
+static char _rcsid[] = "$OpenBSD: route6d.c,v 1.11 2000/10/10 13:06:29 itojun Exp $";
#endif
#include <stdio.h>
@@ -1459,8 +1459,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;
}
@@ -2220,7 +2220,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);