]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
- markus@cvs.openbsd.org 2002/10/23 10:32:13
authorBen Lindstrom <mouring@eviladmin.org>
Sat, 9 Nov 2002 15:41:39 +0000 (15:41 +0000)
committerBen Lindstrom <mouring@eviladmin.org>
Sat, 9 Nov 2002 15:41:39 +0000 (15:41 +0000)
     [packet.c]
     use %u for u_int

ChangeLog
packet.c

index 5b2de4ee6b7e5a421745a10a1e9f31cfeb543a56..7120cceeca8b1dac6cb8944ab4a36a52393a8709 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,9 @@
    - itojun@cvs.openbsd.org 2002/10/16 14:31:48
      [sftp-common.c]
      64bit pedant.  %llu is "unsigned long long".  markus ok
+   - markus@cvs.openbsd.org 2002/10/23 10:32:13
+     [packet.c]
+     use %u for u_int
 
 20021021
  - (djm) Bug #400: Kill ssh-rand-helper children on timeout, patch from 
      save auth method before monitor_reset_key_state(); bugzilla bug #284;
      ok provos@
 
-$Id: ChangeLog,v 1.2500 2002/11/09 15:40:34 mouring Exp $
+$Id: ChangeLog,v 1.2501 2002/11/09 15:41:39 mouring Exp $
index bd347ef0f4ff90a87bc5944c934abd2717c39c37..5078630e7465c630d66fb152b0b7f6db10ae0478 100644 (file)
--- a/packet.c
+++ b/packet.c
@@ -37,7 +37,7 @@
  */
 
 #include "includes.h"
-RCSID("$OpenBSD: packet.c,v 1.97 2002/07/04 08:12:15 deraadt Exp $");
+RCSID("$OpenBSD: packet.c,v 1.98 2002/10/23 10:32:13 markus Exp $");
 
 #include "xmalloc.h"
 #include "buffer.h"
@@ -840,7 +840,7 @@ packet_read_poll1(void)
        cp = buffer_ptr(&input);
        len = GET_32BIT(cp);
        if (len < 1 + 2 + 2 || len > 256 * 1024)
-               packet_disconnect("Bad packet length %d.", len);
+               packet_disconnect("Bad packet length %u.", len);
        padded_len = (len + 8) & ~7;
 
        /* Check if the packet has been entirely received. */
@@ -936,9 +936,9 @@ packet_read_poll2(u_int32_t *seqnr_p)
                packet_length = GET_32BIT(cp);
                if (packet_length < 1 + 4 || packet_length > 256 * 1024) {
                        buffer_dump(&incoming_packet);
-                       packet_disconnect("Bad packet length %d.", packet_length);
+                       packet_disconnect("Bad packet length %u.", packet_length);
                }
-               DBG(debug("input: packet len %d", packet_length+4));
+               DBG(debug("input: packet len %u", packet_length+4));
                buffer_consume(&input, block_size);
        }
        /* we have a partial packet of block_size bytes */