aboutsummaryrefslogtreecommitdiff
path: root/libssh
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2009-05-04 06:55:25 +0000
committerAndreas Schneider <mail@cynapses.org>2009-05-04 06:55:25 +0000
commit3e1ed1707c2c60b6c44e2ece530b0cf8bb2b933d (patch)
tree12cbc7175aefe3c4b23fc52c65c20b61f7d0f0be /libssh
parent2688c1a1d5ba56bfed8ac37520ecf33e07513ce8 (diff)
downloadlibssh-3e1ed1707c2c60b6c44e2ece530b0cf8bb2b933d.tar.gz
libssh-3e1ed1707c2c60b6c44e2ece530b0cf8bb2b933d.tar.xz
libssh-3e1ed1707c2c60b6c44e2ece530b0cf8bb2b933d.zip
Reformat channel_request_pty().
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@694 7dcaeef0-15fb-0310-b436-a5af3365683c
Diffstat (limited to 'libssh')
-rw-r--r--libssh/channels.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/libssh/channels.c b/libssh/channels.c
index 1fb2aa6..19e7c08 100644
--- a/libssh/channels.c
+++ b/libssh/channels.c
@@ -1118,14 +1118,17 @@ error:
return rc;
}
-/** \brief requests a pty
- * \param channel channel
- * \see channel_request_pty_size()
- * \return SSH_SUCCESS on success\n
- * SSH_ERROR on error
+/**
+ * @brief Request a PTY.
+ *
+ * @param channel The channel to send the request.
+ *
+ * @return SSH_SUCCESS on success, SSH_ERROR on error.
+ *
+ * @see channel_request_pty_size()
*/
-int channel_request_pty(CHANNEL *channel){
- return channel_request_pty_size(channel,"xterm",80,24);
+int channel_request_pty(CHANNEL *channel) {
+ return channel_request_pty_size(channel, "xterm", 80, 24);
}
/** \brief change the size of the terminal associated to a channel