diff options
author | Fabiano FidĂȘncio <fidencio@redhat.com> | 2015-09-17 10:09:06 +0200 |
---|---|---|
committer | Fabiano FidĂȘncio <fidencio@redhat.com> | 2016-01-19 11:31:07 +0100 |
commit | 501faacf8ec6fe75b032fa7bfabff82a83b0555e (patch) | |
tree | ae4e78b569544eb1c2fa36586ddb2e6c72e7e137 /src/channels.c | |
parent | adc8c20ac17b39e32e6ac9e8913ebeeb1c5b8081 (diff) | |
download | libssh-501faacf8ec6fe75b032fa7bfabff82a83b0555e.tar.gz libssh-501faacf8ec6fe75b032fa7bfabff82a83b0555e.tar.xz libssh-501faacf8ec6fe75b032fa7bfabff82a83b0555e.zip |
cleanup: use ssh_ prefix in the channels (non-static) functions
Having "ssh_" prefix in the functions' name will avoid possible clashes
when compiling libssh statically.
Signed-off-by: Fabiano FidĂȘncio <fidencio@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'src/channels.c')
-rw-r--r-- | src/channels.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/channels.c b/src/channels.c index 84e96083..60823200 100644 --- a/src/channels.c +++ b/src/channels.c @@ -864,7 +864,7 @@ int ssh_channel_open_session(ssh_channel channel) { #ifdef WITH_SSH1 if (channel->session->version == 1) { - return channel_open_session1(channel); + return ssh_channel_open_session1(channel); } #endif @@ -1250,7 +1250,7 @@ static int channel_write_common(ssh_channel channel, } #ifdef WITH_SSH1 if (channel->version == 1) { - rc = channel_write1(channel, data, len); + rc = ssh_channel_write1(channel, data, len); return rc; } @@ -1633,7 +1633,7 @@ int ssh_channel_request_pty_size(ssh_channel channel, const char *terminal, #ifdef WITH_SSH1 if (channel->version==1) { - rc = channel_request_pty_size1(channel,terminal, col, row); + rc = ssh_channel_request_pty_size1(channel,terminal, col, row); return rc; } @@ -1711,7 +1711,7 @@ int ssh_channel_change_pty_size(ssh_channel channel, int cols, int rows) { #ifdef WITH_SSH1 if (channel->version == 1) { - rc = channel_change_pty_size1(channel,cols,rows); + rc = ssh_channel_change_pty_size1(channel,cols,rows); return rc; } @@ -1757,7 +1757,7 @@ int ssh_channel_request_shell(ssh_channel channel) { } #ifdef WITH_SSH1 if (channel->version == 1) { - return channel_request_shell1(channel); + return ssh_channel_request_shell1(channel); } #endif return channel_request(channel, "shell", NULL, 1); @@ -2398,7 +2398,7 @@ int ssh_channel_request_exec(ssh_channel channel, const char *cmd) { #ifdef WITH_SSH1 if (channel->version == 1) { - return channel_request_exec1(channel, cmd); + return ssh_channel_request_exec1(channel, cmd); } #endif switch(channel->request_state){ |