mirror of
git://anongit.mindrot.org/openssh.git
synced 2024-11-23 09:17:32 +08:00
upstream commit
Print ssize_t with %zd; ok deraadt@ mmcc@ Upstream-ID: 0590313bbb013ff6692298c98f7e0be349d124bd
This commit is contained in:
parent
6e7f68ce38
commit
18f64b969c
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user