aboutsummaryrefslogtreecommitdiff
path: root/src/channels1.c
diff options
context:
space:
mode:
authorFabiano FidĂȘncio <fidencio@redhat.com>2015-09-17 14:11:08 +0200
committerFabiano FidĂȘncio <fidencio@redhat.com>2016-01-19 11:31:07 +0100
commite368d01385c2d1a6c729964befc11e80010693ba (patch)
treefb7a43cba42ab7c412d0279667200d272329cf41 /src/channels1.c
parent310c41a89a91a44b4e63c19bc2f35e8b2d28827d (diff)
downloadlibssh-e368d01385c2d1a6c729964befc11e80010693ba.tar.gz
libssh-e368d01385c2d1a6c729964befc11e80010693ba.tar.xz
libssh-e368d01385c2d1a6c729964befc11e80010693ba.zip
cleanup: use ssh_ prefix in the packet (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/channels1.c')
-rw-r--r--src/channels1.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/channels1.c b/src/channels1.c
index 730649a7..2ad087e3 100644
--- a/src/channels1.c
+++ b/src/channels1.c
@@ -129,7 +129,7 @@ int ssh_channel_request_pty_size1(ssh_channel channel, const char *terminal, int
SSH_LOG(SSH_LOG_FUNCTIONS, "Opening a ssh1 pty");
channel->request_state = SSH_CHANNEL_REQ_STATE_PENDING;
- if (packet_send(session) == SSH_ERROR) {
+ if (ssh_packet_send(session) == SSH_ERROR) {
return -1;
}
@@ -178,7 +178,7 @@ int ssh_channel_change_pty_size1(ssh_channel channel, int cols, int rows) {
return SSH_ERROR;
}
channel->request_state=SSH_CHANNEL_REQ_STATE_PENDING;
- if (packet_send(session) == SSH_ERROR) {
+ if (ssh_packet_send(session) == SSH_ERROR) {
return SSH_ERROR;
}
@@ -219,7 +219,7 @@ int ssh_channel_request_shell1(ssh_channel channel) {
return -1;
}
- if (packet_send(session) == SSH_ERROR) {
+ if (ssh_packet_send(session) == SSH_ERROR) {
return -1;
}
@@ -249,7 +249,7 @@ int ssh_channel_request_exec1(ssh_channel channel, const char *cmd) {
}
ssh_string_free(command);
- if(packet_send(session) == SSH_ERROR) {
+ if(ssh_packet_send(session) == SSH_ERROR) {
return -1;
}
@@ -314,7 +314,7 @@ SSH_PACKET_CALLBACK(ssh_packet_close1){
if (rc < 0) {
return SSH_PACKET_NOT_USED;
}
- packet_send(session);
+ ssh_packet_send(session);
return SSH_PACKET_USED;
}
@@ -364,7 +364,7 @@ int ssh_channel_write1(ssh_channel channel, const void *data, int len) {
ptr += effectivelen;
len -= effectivelen;
- if (packet_send(session) == SSH_ERROR) {
+ if (ssh_packet_send(session) == SSH_ERROR) {
return -1;
}
ssh_handle_packets(session, SSH_TIMEOUT_NONBLOCKING);