diff options
author | Andreas Schneider <mail@cynapses.org> | 2009-02-02 16:09:38 +0000 |
---|---|---|
committer | Andreas Schneider <mail@cynapses.org> | 2009-02-02 16:09:38 +0000 |
commit | 974a160fd31c10852e9bb811d14a33cff1bae7c4 (patch) | |
tree | 4bda1914a6a8f141a4faf57014cf54a868a0c0f2 /libssh/messages.c | |
parent | 5e03a95a937c8c64e4bfab8f796d88a4168857bd (diff) | |
download | libssh-974a160fd31c10852e9bb811d14a33cff1bae7c4.tar.gz libssh-974a160fd31c10852e9bb811d14a33cff1bae7c4.tar.xz libssh-974a160fd31c10852e9bb811d14a33cff1bae7c4.zip |
Fix several build warnings.
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@214 7dcaeef0-15fb-0310-b436-a5af3365683c
Diffstat (limited to 'libssh/messages.c')
-rw-r--r-- | libssh/messages.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/libssh/messages.c b/libssh/messages.c index c70a56e..8df682b 100644 --- a/libssh/messages.c +++ b/libssh/messages.c @@ -169,11 +169,13 @@ int ssh_message_auth_reply_success(SSH_MESSAGE *msg,int partial){ } static SSH_MESSAGE *handle_channel_request_open(SSH_SESSION *session){ - enter_function(); - SSH_MESSAGE *msg=message_new(session); + SSH_MESSAGE *msg; STRING *type; char *type_c; - u32 sender,window,packet; + u32 sender, window, packet; + + enter_function(); + msg=message_new(session); msg->type=SSH_CHANNEL_REQUEST_OPEN; type=buffer_get_ssh_string(session->in_buffer); type_c=string_to_char(type); @@ -198,9 +200,11 @@ static SSH_MESSAGE *handle_channel_request_open(SSH_SESSION *session){ } CHANNEL *ssh_message_channel_request_open_reply_accept(SSH_MESSAGE *msg){ - SSH_SESSION *session=msg->session; - enter_function(); - CHANNEL *chan=channel_new(session); + SSH_SESSION *session=msg->session; + CHANNEL *chan; + + enter_function(); + chan=channel_new(session); chan->local_channel=ssh_channel_new_id(session); chan->local_maxpacket=35000; chan->local_window=32000; |