summaryrefslogtreecommitdiff
path: root/usr.bin/ssh
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2002-06-24 15:49:23 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2002-06-24 15:49:23 +0000
commit042f754b4d52538f11c95bdc1c0f7a07fa6df479 (patch)
tree90ced8a50124b432d35468efba649a773bba3645 /usr.bin/ssh
parentf95ce3ff83bb06da1e5945696f22155afc05769e (diff)
printf type pedant
Diffstat (limited to 'usr.bin/ssh')
-rw-r--r--usr.bin/ssh/msg.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/ssh/msg.c b/usr.bin/ssh/msg.c
index 103aed2cde2..7275c847dab 100644
--- a/usr.bin/ssh/msg.c
+++ b/usr.bin/ssh/msg.c
@@ -22,7 +22,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "includes.h"
-RCSID("$OpenBSD: msg.c,v 1.2 2002/06/19 00:27:55 deraadt Exp $");
+RCSID("$OpenBSD: msg.c,v 1.3 2002/06/24 15:49:22 itojun Exp $");
#include "buffer.h"
#include "getput.h"
@@ -36,7 +36,7 @@ msg_send(int fd, u_char type, Buffer *m)
u_char buf[5];
u_int mlen = buffer_len(m);
- debug3("msg_send: type %d", type);
+ debug3("msg_send: type %u", (unsigned int)type & 0xff);
PUT_32BIT(buf, mlen + 1);
buf[4] = type; /* 1st byte of payload is mesg-type */
@@ -59,7 +59,7 @@ msg_recv(int fd, Buffer *m)
if (res != sizeof(buf)) {
if (res == 0)
return -1;
- fatal("msg_recv: read: header %d", res);
+ fatal("msg_recv: read: header %ld", (long)res);
}
msg_len = GET_32BIT(buf);
if (msg_len > 256 * 1024)