summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorJeremie Courreges-Anglas <jca@cvs.openbsd.org>2016-02-29 20:22:37 +0000
committerJeremie Courreges-Anglas <jca@cvs.openbsd.org>2016-02-29 20:22:37 +0000
commitdd754a849971058fac00b9074a81a5099f050502 (patch)
treed738036550f86a1bd0659d02760c15ac0360f57e /sbin
parentc46e3e7edf0b10fb4028cab867793c98c9481aa5 (diff)
Print ssize_t with %zd; ok deraadt@ mmcc@
Diffstat (limited to 'sbin')
-rw-r--r--sbin/isakmpd/monitor_fdpass.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/sbin/isakmpd/monitor_fdpass.c b/sbin/isakmpd/monitor_fdpass.c
index 50e3f354655..04f677b0b11 100644
--- a/sbin/isakmpd/monitor_fdpass.c
+++ b/sbin/isakmpd/monitor_fdpass.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: monitor_fdpass.c,v 1.16 2008/03/24 16:11:08 deraadt Exp $ */
+/* $OpenBSD: monitor_fdpass.c,v 1.17 2016/02/29 20:22:36 jca Exp $ */
/*
* Copyright 2001 Niels Provos <provos@citi.umich.edu>
@@ -67,8 +67,7 @@ mm_send_fd(int socket, int fd)
return -1;
}
if (n != 1) {
- log_error("mm_send_fd: sendmsg: expected sent 1 got %ld",
- (long)n);
+ log_error("mm_send_fd: sendmsg: expected sent 1 got %zd", n);
return -1;
}
return 0;
@@ -101,8 +100,8 @@ mm_receive_fd(int socket)
return -1;
}
if (n != 1) {
- log_error("mm_receive_fd: recvmsg: expected received 1 got %ld",
- (long)n);
+ log_error("mm_receive_fd: recvmsg: expected received 1 got %zd",
+ n);
return -1;
}
cmsg = CMSG_FIRSTHDR(&msg);