diff options
author | Kevin Steves <stevesk@cvs.openbsd.org> | 2002-03-25 20:12:11 +0000 |
---|---|---|
committer | Kevin Steves <stevesk@cvs.openbsd.org> | 2002-03-25 20:12:11 +0000 |
commit | 2886fce7217a6ae81835d100f588aa86052238b7 (patch) | |
tree | dd3d0c109e8140df5a1f0bc91f2a5a84238e577f /usr.bin/ssh/monitor_wrap.c | |
parent | 0168ebcfe8791fb4e1fa88a1d37c464001776be1 (diff) |
ssize_t args use "%ld" and cast to (long)
size_t args use "%lu" and cast to (u_long)
ok markus@ and thanks millert@
Diffstat (limited to 'usr.bin/ssh/monitor_wrap.c')
-rw-r--r-- | usr.bin/ssh/monitor_wrap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/ssh/monitor_wrap.c b/usr.bin/ssh/monitor_wrap.c index e477cff2514..37d38059cd3 100644 --- a/usr.bin/ssh/monitor_wrap.c +++ b/usr.bin/ssh/monitor_wrap.c @@ -25,7 +25,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: monitor_wrap.c,v 1.4 2002/03/19 14:27:39 markus Exp $"); +RCSID("$OpenBSD: monitor_wrap.c,v 1.5 2002/03/25 20:12:10 stevesk Exp $"); #include <openssl/bn.h> #include <openssl/dh.h> @@ -88,7 +88,7 @@ mm_request_receive(int socket, Buffer *m) if (res != sizeof(buf)) { if (res == 0) fatal_cleanup(); - fatal("%s: read: %d", __FUNCTION__, res); + fatal("%s: read: %ld", __FUNCTION__, (long)res); } msg_len = GET_32BIT(buf); if (msg_len > 256 * 1024) @@ -97,7 +97,7 @@ mm_request_receive(int socket, Buffer *m) buffer_append_space(m, msg_len); res = atomicio(read, socket, buffer_ptr(m), msg_len); if (res != msg_len) - fatal("%s: read: %d != msg_len", __FUNCTION__, res); + fatal("%s: read: %ld != msg_len", __FUNCTION__, (long)res); } void |