upstream commit

Print ssize_t with %zd; ok deraadt@ mmcc@

Upstream-ID: 0590313bbb013ff6692298c98f7e0be349d124bd
This commit is contained in:
jca@openbsd.org 2016-02-29 20:22:36 +00:00 committed by Damien Miller
parent 6e7f68ce38
commit 18f64b969c

View File

@ -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> * Copyright 2001 Niels Provos <provos@citi.umich.edu>
* All rights reserved. * All rights reserved.
@ -99,8 +99,7 @@ mm_send_fd(int sock, int fd)
} }
if (n != 1) { if (n != 1) {
error("%s: sendmsg: expected sent 1 got %ld", error("%s: sendmsg: expected sent 1 got %zd", __func__, n);
__func__, (long)n);
return -1; return -1;
} }
return 0; return 0;
@ -155,8 +154,7 @@ mm_receive_fd(int sock)
} }
if (n != 1) { if (n != 1) {
error("%s: recvmsg: expected received 1 got %ld", error("%s: recvmsg: expected received 1 got %zd", __func__, n);
__func__, (long)n);
return -1; return -1;
} }