summaryrefslogtreecommitdiff
path: root/libexec
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 /libexec
parentc46e3e7edf0b10fb4028cab867793c98c9481aa5 (diff)
Print ssize_t with %zd; ok deraadt@ mmcc@
Diffstat (limited to 'libexec')
-rw-r--r--libexec/ftpd/monitor_fdpass.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libexec/ftpd/monitor_fdpass.c b/libexec/ftpd/monitor_fdpass.c
index eaa3c398b0d..c54c7c165f4 100644
--- a/libexec/ftpd/monitor_fdpass.c
+++ b/libexec/ftpd/monitor_fdpass.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: monitor_fdpass.c,v 1.6 2013/11/12 04:44:14 deraadt Exp $ */
+/* $OpenBSD: monitor_fdpass.c,v 1.7 2016/02/29 20:22:36 jca Exp $ */
/*
* Copyright (c) 2002 Matthieu Herrb
@@ -62,8 +62,8 @@ send_fd(int sock, int fd)
if ((n = sendmsg(sock, &msg, 0)) == -1)
syslog(LOG_WARNING, "send_fd: sendmsg(%d): %m", sock);
if (n != sizeof(int))
- syslog(LOG_WARNING, "send_fd: sendmsg: expected sent 1 got %ld",
- (long)n);
+ syslog(LOG_WARNING, "send_fd: sendmsg: expected sent 1 got %zd",
+ n);
}
int
@@ -94,7 +94,7 @@ recv_fd(int sock)
}
if (n != sizeof(int))
syslog(LOG_WARNING,
- "recv_fd: recvmsg: expected received 1 got %ld", (long)n);
+ "recv_fd: recvmsg: expected received 1 got %zd", n);
if (result == 0) {
cmsg = CMSG_FIRSTHDR(&msg);
if (cmsg == NULL) {