Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/crypto/dist/ssh don't lose information while we cast



details:   https://anonhg.NetBSD.org/src/rev/1ca93e3d8188
branches:  trunk
changeset: 533213:1ca93e3d8188
user:      itojun <itojun%NetBSD.org@localhost>
date:      Mon Jun 24 15:46:34 2002 +0000

description:
don't lose information while we cast

diffstat:

 crypto/dist/ssh/msg.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 0d8cbd32187e -r 1ca93e3d8188 crypto/dist/ssh/msg.c
--- a/crypto/dist/ssh/msg.c     Mon Jun 24 15:32:58 2002 +0000
+++ b/crypto/dist/ssh/msg.c     Mon Jun 24 15:46:34 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: msg.c,v 1.3 2002/06/24 15:32:58 agc Exp $      */
+/*     $NetBSD: msg.c,v 1.4 2002/06/24 15:46:34 itojun Exp $   */
 /*
  * Copyright (c) 2002 Markus Friedl.  All rights reserved.
  *
@@ -37,7 +37,7 @@
        u_char buf[5];
        u_int mlen = buffer_len(m);
 
-       debug3("msg_send: type %d", (int) 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 */
@@ -60,7 +60,7 @@
        if (res != sizeof(buf)) {
                if (res == 0)
                        return -1;
-               fatal("msg_recv: read: header %d", (int) res);
+               fatal("msg_recv: read: header %ld", (long) res);
        }
        msg_len = GET_32BIT(buf);
        if (msg_len > 256 * 1024)



Home | Main Index | Thread Index | Old Index