Fix build on 64-bit arch.
Submitted by: dim Pointy hat to: hrs
This commit is contained in:
parent
1e587bfa32
commit
587d184d3d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=222743
@ -109,7 +109,7 @@ dname_labelenc(char *dst, const char *src)
|
|||||||
/* Always need a 0-length label at the tail. */
|
/* Always need a 0-length label at the tail. */
|
||||||
*dst++ = '\0';
|
*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);
|
return (dst - dst_origin);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -310,7 +310,7 @@ dname_labeldec(char *dst, size_t dlen, const char *src)
|
|||||||
(src + len) <= src_last) {
|
(src + len) <= src_last) {
|
||||||
if (dst != dst_origin)
|
if (dst != dst_origin)
|
||||||
*dst++ = '.';
|
*dst++ = '.';
|
||||||
syslog(LOG_DEBUG, "<%s> labellen = %d", __func__, len);
|
syslog(LOG_DEBUG, "<%s> labellen = %zd", __func__, len);
|
||||||
memcpy(dst, src, len);
|
memcpy(dst, src, len);
|
||||||
src += len;
|
src += len;
|
||||||
dst += len;
|
dst += len;
|
||||||
|
@ -789,7 +789,7 @@ rtadvd_input(void)
|
|||||||
#else
|
#else
|
||||||
if ((size_t)i < sizeof(struct icmp6_hdr)) {
|
if ((size_t)i < sizeof(struct icmp6_hdr)) {
|
||||||
syslog(LOG_ERR,
|
syslog(LOG_ERR,
|
||||||
"<%s> packet size(%d) is too short",
|
"<%s> packet size(%zd) is too short",
|
||||||
__func__, i);
|
__func__, i);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -827,7 +827,7 @@ rtadvd_input(void)
|
|||||||
if ((size_t)i < sizeof(struct nd_router_solicit)) {
|
if ((size_t)i < sizeof(struct nd_router_solicit)) {
|
||||||
syslog(LOG_NOTICE,
|
syslog(LOG_NOTICE,
|
||||||
"<%s> RS from %s on %s does not have enough "
|
"<%s> RS from %s on %s does not have enough "
|
||||||
"length (len = %d)",
|
"length (len = %zd)",
|
||||||
__func__,
|
__func__,
|
||||||
inet_ntop(AF_INET6, &rcvfrom.sin6_addr, ntopbuf,
|
inet_ntop(AF_INET6, &rcvfrom.sin6_addr, ntopbuf,
|
||||||
sizeof(ntopbuf)),
|
sizeof(ntopbuf)),
|
||||||
@ -873,7 +873,7 @@ rtadvd_input(void)
|
|||||||
if ((size_t)i < sizeof(struct nd_router_advert)) {
|
if ((size_t)i < sizeof(struct nd_router_advert)) {
|
||||||
syslog(LOG_NOTICE,
|
syslog(LOG_NOTICE,
|
||||||
"<%s> RA from %s on %s does not have enough "
|
"<%s> RA from %s on %s does not have enough "
|
||||||
"length (len = %d)",
|
"length (len = %zd)",
|
||||||
__func__,
|
__func__,
|
||||||
inet_ntop(AF_INET6, &rcvfrom.sin6_addr, ntopbuf,
|
inet_ntop(AF_INET6, &rcvfrom.sin6_addr, ntopbuf,
|
||||||
sizeof(ntopbuf)),
|
sizeof(ntopbuf)),
|
||||||
|
Loading…
Reference in New Issue
Block a user