callbacks: Add support for MSVC

__typeof__ is GCC specific

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Andreas Schneider
2016-11-05 20:00:02 +01:00
parent 422271bd40
commit 5437deed1b
4 changed files with 22 additions and 15 deletions

View File

@@ -550,7 +550,8 @@ SSH_PACKET_CALLBACK(channel_rcv_data){
if (ssh_buffer_get(buf) == 0) {
break;
}
rest = ssh_callbacks_iterate_exec(channel->session,
rest = ssh_callbacks_iterate_exec(channel_data_function,
channel->session,
channel,
ssh_buffer_get(buf),
ssh_buffer_get_len(buf),