diff options
author | djm@openbsd.org <djm@openbsd.org> | 2016-02-04 23:43:48 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2016-02-05 10:44:43 +1100 |
commit | 696d12683c90d20a0a9c5f4275fc916b7011fb04 (patch) | |
tree | 57abe2308ec910ec7b0f7a834dff47eda4bbd30a | |
parent | 5658ef2501e785fbbdf5de2dc33b1ff7a4dca73a (diff) |
upstream commit
printf argument casts to avoid warnings on strict
compilers
Upstream-ID: 7b9f6712cef01865ad29070262d366cf13587c9c
-rw-r--r-- | packet.c | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: packet.c,v 1.226 2016/01/29 05:46:01 djm Exp $ */ | 1 | /* $OpenBSD: packet.c,v 1.227 2016/02/04 23:43:48 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
@@ -954,8 +954,10 @@ ssh_set_newkeys(struct ssh *ssh, int mode) | |||
954 | if (state->newkeys[mode] != NULL) { | 954 | if (state->newkeys[mode] != NULL) { |
955 | debug("set_newkeys: rekeying, input %llu bytes %llu blocks, " | 955 | debug("set_newkeys: rekeying, input %llu bytes %llu blocks, " |
956 | "output %llu bytes %llu blocks", | 956 | "output %llu bytes %llu blocks", |
957 | state->p_read.bytes, state->p_read.blocks, | 957 | (unsigned long long)state->p_read.bytes, |
958 | state->p_send.bytes, state->p_send.blocks); | 958 | (unsigned long long)state->p_read.blocks, |
959 | (unsigned long long)state->p_send.bytes, | ||
960 | (unsigned long long)state->p_send.blocks); | ||
959 | if ((r = cipher_cleanup(cc)) != 0) | 961 | if ((r = cipher_cleanup(cc)) != 0) |
960 | return r; | 962 | return r; |
961 | enc = &state->newkeys[mode]->enc; | 963 | enc = &state->newkeys[mode]->enc; |
@@ -1023,7 +1025,7 @@ ssh_set_newkeys(struct ssh *ssh, int mode) | |||
1023 | if (state->rekey_limit) | 1025 | if (state->rekey_limit) |
1024 | *max_blocks = MIN(*max_blocks, | 1026 | *max_blocks = MIN(*max_blocks, |
1025 | state->rekey_limit / enc->block_size); | 1027 | state->rekey_limit / enc->block_size); |
1026 | debug("rekey after %llu blocks", *max_blocks); | 1028 | debug("rekey after %llu blocks", (unsigned long long)*max_blocks); |
1027 | return 0; | 1029 | return 0; |
1028 | } | 1030 | } |
1029 | 1031 | ||