cast size_t to u_long on printing. sync with kame
This commit is contained in:
parent
b4d52d9d24
commit
ecb9f85737
@ -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 <sys/cdefs.h>
|
||||
#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 <stdio.h>
|
||||
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user