summaryrefslogtreecommitdiff
path: root/common-channel.c
diff options
context:
space:
mode:
authorThorsten Horstmann <thorsten.horstmann@web.de>2015-02-24 20:51:18 +0800
committerThorsten Horstmann <thorsten.horstmann@web.de>2015-02-24 20:51:18 +0800
commit18194ed2d1a30eae89fa071bc4b78a5d257eae2d (patch)
treec35c89418adba4bdcf080c5aef782794147dea79 /common-channel.c
parent1b125465182b5cdb9f80e4a934c936168ab95b2f (diff)
downloaddropbear-18194ed2d1a30eae89fa071bc4b78a5d257eae2d.tar.gz
Fix for old compilers, variable declarations at beginning of functions
and /**/ comments
Diffstat (limited to 'common-channel.c')
-rw-r--r--common-channel.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/common-channel.c b/common-channel.c
index 049658d..db47695 100644
--- a/common-channel.c
+++ b/common-channel.c
@@ -402,7 +402,7 @@ static void check_in_progress(struct Channel *channel) {
/* Send the close message and set the channel as closed */
static void send_msg_channel_close(struct Channel *channel) {
- TRACE(("enter send_msg_channel_close %p", channel))
+ TRACE(("enter send_msg_channel_close %p", (void*)channel))
if (channel->type->closehandler
&& !channel->close_handler_done) {
channel->type->closehandler(channel);
@@ -616,7 +616,7 @@ void recv_msg_channel_request() {
channel = getchannel();
- TRACE(("enter recv_msg_channel_request %p", channel))
+ TRACE(("enter recv_msg_channel_request %p", (void*)channel))
if (channel->sent_close) {
TRACE(("leave recv_msg_channel_request: already closed channel"))
@@ -1141,10 +1141,10 @@ void send_msg_request_failure() {
}
struct Channel* get_any_ready_channel() {
+ size_t i;
if (ses.chancount == 0) {
return NULL;
}
- size_t i;
for (i = 0; i < ses.chansize; i++) {
struct Channel *chan = ses.channels[i];
if (chan