aboutsummaryrefslogtreecommitdiff
path: root/libssh
diff options
context:
space:
mode:
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)