Fix build on 64-bit arch.

Submitted by:	dim
Pointy hat to:	hrs
This commit is contained in:
Hiroki Sato 2011-06-06 10:51:00 +00:00
parent 1e587bfa32
commit 587d184d3d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=222743
3 changed files with 5 additions and 5 deletions

View File

@ -109,7 +109,7 @@ dname_labelenc(char *dst, const char *src)
/* Always need a 0-length label at the tail. */
*dst++ = '\0';
syslog(LOG_DEBUG, "<%s> labellen = %d", __func__, dst - dst_origin);
syslog(LOG_DEBUG, "<%s> labellen = %td", __func__, dst - dst_origin);
return (dst - dst_origin);
}

View File

@ -310,7 +310,7 @@ dname_labeldec(char *dst, size_t dlen, const char *src)
(src + len) <= src_last) {
if (dst != dst_origin)
*dst++ = '.';
syslog(LOG_DEBUG, "<%s> labellen = %d", __func__, len);
syslog(LOG_DEBUG, "<%s> labellen = %zd", __func__, len);
memcpy(dst, src, len);
src += len;
dst += len;

View File

@ -789,7 +789,7 @@ rtadvd_input(void)
#else
if ((size_t)i < sizeof(struct icmp6_hdr)) {
syslog(LOG_ERR,
"<%s> packet size(%d) is too short",
"<%s> packet size(%zd) is too short",
__func__, i);
return;
}
@ -827,7 +827,7 @@ rtadvd_input(void)
if ((size_t)i < sizeof(struct nd_router_solicit)) {
syslog(LOG_NOTICE,
"<%s> RS from %s on %s does not have enough "
"length (len = %d)",
"length (len = %zd)",
__func__,
inet_ntop(AF_INET6, &rcvfrom.sin6_addr, ntopbuf,
sizeof(ntopbuf)),
@ -873,7 +873,7 @@ rtadvd_input(void)
if ((size_t)i < sizeof(struct nd_router_advert)) {
syslog(LOG_NOTICE,
"<%s> RA from %s on %s does not have enough "
"length (len = %d)",
"length (len = %zd)",
__func__,
inet_ntop(AF_INET6, &rcvfrom.sin6_addr, ntopbuf,
sizeof(ntopbuf)),