summaryrefslogtreecommitdiff
path: root/monitor_fdpass.c
diff options
context:
space:
mode:
authorjca@openbsd.org <jca@openbsd.org>2016-02-29 20:22:36 +0000
committerDamien Miller <djm@mindrot.org>2016-03-04 15:12:17 +1100
commit18f64b969c70ed00e74b9d8e50359dbe698ce4c0 (patch)
treee0ca0aa7b4279a2ec68e8fc24efc134cb05f299b /monitor_fdpass.c
parent6e7f68ce38130c794ec1fb8d2a6091fbe982628d (diff)
upstream commit
Print ssize_t with %zd; ok deraadt@ mmcc@ Upstream-ID: 0590313bbb013ff6692298c98f7e0be349d124bd
Diffstat (limited to 'monitor_fdpass.c')
-rw-r--r--monitor_fdpass.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/monitor_fdpass.c b/monitor_fdpass.c
index 2ddd8073..d766edcf 100644
--- a/monitor_fdpass.c
+++ b/monitor_fdpass.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: monitor_fdpass.c,v 1.20 2015/02/25 23:05:47 djm Exp $ */
+/* $OpenBSD: monitor_fdpass.c,v 1.21 2016/02/29 20:22:36 jca Exp $ */
/*
* Copyright 2001 Niels Provos <provos@citi.umich.edu>
* All rights reserved.
@@ -99,8 +99,7 @@ mm_send_fd(int sock, int fd)
}
if (n != 1) {
- error("%s: sendmsg: expected sent 1 got %ld",
- __func__, (long)n);
+ error("%s: sendmsg: expected sent 1 got %zd", __func__, n);
return -1;
}
return 0;
@@ -155,8 +154,7 @@ mm_receive_fd(int sock)
}
if (n != 1) {
- error("%s: recvmsg: expected received 1 got %ld",
- __func__, (long)n);
+ error("%s: recvmsg: expected received 1 got %zd", __func__, n);
return -1;
}