aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/ppp/ip.c
diff options
context:
space:
mode:
authorMarcel Moolenaar <marcel@FreeBSD.org>2004-09-06 00:07:58 +0000
committerMarcel Moolenaar <marcel@FreeBSD.org>2004-09-06 00:07:58 +0000
commit1814213e06f91d3989ec8707faceef2d8d3e4256 (patch)
tree5c8a2f850d3e0b670252c9a5d737fdab58d5ea8f /usr.sbin/ppp/ip.c
parent0fe38d47b7b4aba3eeec851f32925bd24cd526c8 (diff)
downloadsrc-1814213e06f91d3989ec8707faceef2d8d3e4256.tar.gz
src-1814213e06f91d3989ec8707faceef2d8d3e4256.zip
Fix the build on 64-bit platforms.
Notes
Notes: svn path=/head/; revision=134833
Diffstat (limited to 'usr.sbin/ppp/ip.c')
-rw-r--r--usr.sbin/ppp/ip.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/ppp/ip.c b/usr.sbin/ppp/ip.c
index e3ec20d05291..7a84e099959e 100644
--- a/usr.sbin/ppp/ip.c
+++ b/usr.sbin/ppp/ip.c
@@ -908,7 +908,7 @@ ip_Input(struct bundle *bundle, struct link *l, struct mbuf *bp, u_int32_t af)
nb = m_length(bp);
if (nb > sizeof tun.data) {
- log_Printf(LogWARN, "ip_Input: %s: Packet too large (got %d, max %d)\n",
+ log_Printf(LogWARN, "ip_Input: %s: Packet too large (got %zd, max %d)\n",
l->name, nb, (int)(sizeof tun.data));
m_freem(bp);
return 0;
@@ -937,10 +937,11 @@ ip_Input(struct bundle *bundle, struct link *l, struct mbuf *bp, u_int32_t af)
nw = write(bundle->dev.fd, data, nb);
if (nw != (ssize_t)nb) {
if (nw == -1)
- log_Printf(LogERROR, "ip_Input: %s: wrote %d, got %s\n",
+ log_Printf(LogERROR, "ip_Input: %s: wrote %zd, got %s\n",
l->name, nb, strerror(errno));
else
- log_Printf(LogERROR, "ip_Input: %s: wrote %d, got %d\n", l->name, nb, nw);
+ log_Printf(LogERROR, "ip_Input: %s: wrote %zd, got %zd\n", l->name, nb,
+ nw);
}
return nb;