aboutsummaryrefslogtreecommitdiff
path: root/libssh
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2009-05-04 06:58:32 +0000
committerAndreas Schneider <mail@cynapses.org>2009-05-04 06:58:32 +0000
commit8060f51ec7891f2d27972a3662c47a05df40a8eb (patch)
treef3b2e19c328ba23a8f25dfe5fbe16c72cfd08024 /libssh
parent0e6359c63d966ce37c9dd40a7cb3464c461d8aa5 (diff)
downloadlibssh-8060f51ec7891f2d27972a3662c47a05df40a8eb.tar.gz
libssh-8060f51ec7891f2d27972a3662c47a05df40a8eb.tar.xz
libssh-8060f51ec7891f2d27972a3662c47a05df40a8eb.zip
Improve channel_request_shell().
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@696 7dcaeef0-15fb-0310-b436-a5af3365683c
Diffstat (limited to 'libssh')
-rw-r--r--libssh/channels.c19
1 files changed, 11 insertions, 8 deletions
diff --git a/libssh/channels.c b/libssh/channels.c
index 3571706..66fcc18 100644
--- a/libssh/channels.c
+++ b/libssh/channels.c
@@ -1179,17 +1179,20 @@ error:
return rc;
}
-/** \brief requests a shell
- * \param channel
- * \returns SSH_SUCCESS on success\n
- * SSH_ERROR on error
+/**
+ * @brief Request a shell.
+ *
+ * @param channel The channel to send the request.
+ *
+ * @returns SSH_SUCCESS on success, SSH_ERROR on error.
*/
-int channel_request_shell(CHANNEL *channel){
+int channel_request_shell(CHANNEL *channel) {
#ifdef HAVE_SSH1
- if(channel->version==1)
- return channel_request_shell1(channel);
+ if (channel->version == 1) {
+ return channel_request_shell1(channel);
+ }
#endif
- return channel_request(channel,"shell",NULL,1);
+ return channel_request(channel, "shell", NULL, 1);
}
/** \brief requests a subsystem (for example sftp)