summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlan Dunn <amdunn@gmail.com>2014-01-21 13:29:29 -0600
committerAndreas Schneider <asn@cryptomilk.org>2014-01-22 09:45:45 +0100
commit7eff8893847270da1e05300d7c26734d04c0b375 (patch)
tree76e17697ca78d3b199242d738fc70879f7c19a5f /src
parent465816f4a0ad194394342f579da55b84a9a3ca60 (diff)
downloadlibssh-7eff8893847270da1e05300d7c26734d04c0b375.tar.gz
libssh-7eff8893847270da1e05300d7c26734d04c0b375.tar.xz
libssh-7eff8893847270da1e05300d7c26734d04c0b375.zip
doc: Fix description of error parameter for ssh_get_error*
ssh_get_error can actually work on anything with an ssh_common_struct as its first member. It is already used in examples in the distribution with ssh_sessions and ssh_binds. Signed-off-by: Alan Dunn <amdunn@gmail.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'src')
-rw-r--r--src/error.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/error.c b/src/error.c
index fbe0e787..bd755c4f 100644
--- a/src/error.c
+++ b/src/error.c
@@ -104,7 +104,7 @@ void _ssh_set_error_invalid(void *error, const char *function)
/**
* @brief Retrieve the error text message from the last error.
*
- * @param error The SSH session pointer.
+ * @param error An ssh_session or ssh_bind.
*
* @return A static string describing the error.
*/
@@ -117,7 +117,7 @@ const char *ssh_get_error(void *error) {
/**
* @brief Retrieve the error code from the last error.
*
- * @param error The SSH session pointer.
+ * @param error An ssh_session or ssh_bind.
*
* \return SSH_NO_ERROR No error occurred\n
* SSH_REQUEST_DENIED The last request was denied but situation is