aboutsummaryrefslogtreecommitdiff
path: root/libssh/channels.c
diff options
context:
space:
mode:
Diffstat (limited to 'libssh/channels.c')
-rw-r--r--libssh/channels.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/libssh/channels.c b/libssh/channels.c
index 13ddc25..47e2c97 100644
--- a/libssh/channels.c
+++ b/libssh/channels.c
@@ -1622,12 +1622,15 @@ int channel_poll(CHANNEL *channel, int is_stderr){
return buffer_get_rest_len(stdbuf);
}
-/** \brief recover the session in which belong a channel
- * \param channel channel
- * \return the session pointer
+/**
+ * @brief Recover the session in which belongs a channel.
+ *
+ * @param channel The channel to recover the session from.
+ *
+ * @return The session pointer.
*/
-SSH_SESSION *channel_get_session(CHANNEL *channel){
- return channel->session;
+SSH_SESSION *channel_get_session(CHANNEL *channel) {
+ return channel->session;
}
/** \brief get the exit status of the channel (error code from the executed instruction).