comparison common-session.c @ 1038:d3925ed45a85

Fix for old compilers, variable declarations at beginning of functions and /**/ comments
author Thorsten Horstmann <thorsten.horstmann@web.de>
date Tue, 24 Feb 2015 20:51:18 +0800
parents 24135c8e1d46
children 2b4fd440399d
comparison
equal deleted inserted replaced
1037:7c899f24a85b 1038:d3925ed45a85
397 TRACE(("leave ident_readln: return %d", pos+1)) 397 TRACE(("leave ident_readln: return %d", pos+1))
398 return pos+1; 398 return pos+1;
399 } 399 }
400 400
401 void ignore_recv_response() { 401 void ignore_recv_response() {
402 // Do nothing 402 /* Do nothing */
403 TRACE(("Ignored msg_request_response")) 403 TRACE(("Ignored msg_request_response"))
404 } 404 }
405 405
406 static void send_msg_keepalive() { 406 static void send_msg_keepalive() {
407 time_t old_time_idle = ses.last_packet_time_idle;
408 struct Channel *chan = get_any_ready_channel();
409
407 CHECKCLEARTOWRITE(); 410 CHECKCLEARTOWRITE();
408 time_t old_time_idle = ses.last_packet_time_idle;
409
410 struct Channel *chan = get_any_ready_channel();
411 411
412 if (chan) { 412 if (chan) {
413 /* Channel requests are preferable, more implementations 413 /* Channel requests are preferable, more implementations
414 handle them than SSH_MSG_GLOBAL_REQUEST */ 414 handle them than SSH_MSG_GLOBAL_REQUEST */
415 TRACE(("keepalive channel request %d", chan->index)) 415 TRACE(("keepalive channel request %d", chan->index))