]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream commit
authordjm@openbsd.org <djm@openbsd.org>
Thu, 4 Feb 2016 23:43:48 +0000 (23:43 +0000)
committerDamien Miller <djm@mindrot.org>
Thu, 4 Feb 2016 23:44:43 +0000 (10:44 +1100)
printf argument casts to avoid warnings on strict
 compilers

Upstream-ID: 7b9f6712cef01865ad29070262d366cf13587c9c

packet.c

index e05bc0ad7c5410c3519061cc749123cc2b9a5d30..f7e5bc78f1324a17de0c865272f9d7a5d23e180c 100644 (file)
--- a/packet.c
+++ b/packet.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: packet.c,v 1.226 2016/01/29 05:46:01 djm Exp $ */
+/* $OpenBSD: packet.c,v 1.227 2016/02/04 23:43:48 djm Exp $ */
 /*
  * Author: Tatu Ylonen <ylo@cs.hut.fi>
  * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -954,8 +954,10 @@ ssh_set_newkeys(struct ssh *ssh, int mode)
        if (state->newkeys[mode] != NULL) {
                debug("set_newkeys: rekeying, input %llu bytes %llu blocks, "
                   "output %llu bytes %llu blocks",
-                  state->p_read.bytes, state->p_read.blocks,
-                  state->p_send.bytes, state->p_send.blocks);
+                  (unsigned long long)state->p_read.bytes,
+                  (unsigned long long)state->p_read.blocks,
+                  (unsigned long long)state->p_send.bytes,
+                  (unsigned long long)state->p_send.blocks);
                if ((r = cipher_cleanup(cc)) != 0)
                        return r;
                enc  = &state->newkeys[mode]->enc;
@@ -1023,7 +1025,7 @@ ssh_set_newkeys(struct ssh *ssh, int mode)
        if (state->rekey_limit)
                *max_blocks = MIN(*max_blocks,
                    state->rekey_limit / enc->block_size);
-       debug("rekey after %llu blocks", *max_blocks);
+       debug("rekey after %llu blocks", (unsigned long long)*max_blocks);
        return 0;
 }