diff options
author | Thorsten Horstmann <thorsten.horstmann@web.de> | 2015-02-24 20:51:18 +0800 |
---|---|---|
committer | Thorsten Horstmann <thorsten.horstmann@web.de> | 2015-02-24 20:51:18 +0800 |
commit | ab9439519ac3ca1ce5b273587544da3494f87308 (patch) | |
tree | 0d26af69620cabf404afe2fac5e66a924323578f /common-channel.c | |
parent | abeb9d64a398cb38348f95b8d93b888f4e726cd0 (diff) |
Fix for old compilers, variable declarations at beginning of functions
and /**/ comments
Diffstat (limited to 'common-channel.c')
-rw-r--r-- | common-channel.c | 6 |
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 |