diff options
author | Damien Miller <djm@mindrot.org> | 2013-07-18 16:12:44 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2013-07-18 16:12:44 +1000 |
commit | ce98654674648fb7d58f73edf6aa398656a2dba4 (patch) | |
tree | 0eaf824f5ec795de2204e800d6e1d74d2c905ac8 /packet.c | |
parent | 0d02c3e10e1ed16d6396748375a133d348127a2a (diff) |
- djm@cvs.openbsd.org 2013/07/12 00:19:59
[auth-options.c auth-rsa.c bufaux.c buffer.h channels.c hostfile.c]
[hostfile.h mux.c packet.c packet.h roaming_common.c serverloop.c]
fix pointer-signedness warnings from clang/llvm-3.3; "seems nice" deraadt@
Diffstat (limited to 'packet.c')
-rw-r--r-- | packet.c | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: packet.c,v 1.187 2013/06/01 13:15:52 dtucker Exp $ */ | 1 | /* $OpenBSD: packet.c,v 1.188 2013/07/12 00:19:58 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 |
@@ -1048,7 +1048,7 @@ packet_send(void) | |||
1048 | int | 1048 | int |
1049 | packet_read_seqnr(u_int32_t *seqnr_p) | 1049 | packet_read_seqnr(u_int32_t *seqnr_p) |
1050 | { | 1050 | { |
1051 | int type, len, ret, ms_remain, cont; | 1051 | int type, len, ret, cont, ms_remain = 0; |
1052 | fd_set *setp; | 1052 | fd_set *setp; |
1053 | char buf[8192]; | 1053 | char buf[8192]; |
1054 | struct timeval timeout, start, *timeoutp = NULL; | 1054 | struct timeval timeout, start, *timeoutp = NULL; |
@@ -1487,6 +1487,8 @@ packet_read_poll_seqnr(u_int32_t *seqnr_p) | |||
1487 | } else { | 1487 | } else { |
1488 | type = packet_read_poll1(); | 1488 | type = packet_read_poll1(); |
1489 | switch (type) { | 1489 | switch (type) { |
1490 | case SSH_MSG_NONE: | ||
1491 | return SSH_MSG_NONE; | ||
1490 | case SSH_MSG_IGNORE: | 1492 | case SSH_MSG_IGNORE: |
1491 | break; | 1493 | break; |
1492 | case SSH_MSG_DEBUG: | 1494 | case SSH_MSG_DEBUG: |
@@ -1501,8 +1503,7 @@ packet_read_poll_seqnr(u_int32_t *seqnr_p) | |||
1501 | cleanup_exit(255); | 1503 | cleanup_exit(255); |
1502 | break; | 1504 | break; |
1503 | default: | 1505 | default: |
1504 | if (type) | 1506 | DBG(debug("received packet type %d", type)); |
1505 | DBG(debug("received packet type %d", type)); | ||
1506 | return type; | 1507 | return type; |
1507 | } | 1508 | } |
1508 | } | 1509 | } |
@@ -1739,7 +1740,7 @@ void | |||
1739 | packet_write_wait(void) | 1740 | packet_write_wait(void) |
1740 | { | 1741 | { |
1741 | fd_set *setp; | 1742 | fd_set *setp; |
1742 | int ret, ms_remain; | 1743 | int ret, ms_remain = 0; |
1743 | struct timeval start, timeout, *timeoutp = NULL; | 1744 | struct timeval start, timeout, *timeoutp = NULL; |
1744 | 1745 | ||
1745 | setp = (fd_set *)xcalloc(howmany(active_state->connection_out + 1, | 1746 | setp = (fd_set *)xcalloc(howmany(active_state->connection_out + 1, |