diff options
author | Andreas Schneider <mail@cynapses.org> | 2009-05-05 07:27:16 +0000 |
---|---|---|
committer | Andreas Schneider <mail@cynapses.org> | 2009-05-05 07:27:16 +0000 |
commit | 53a24a4f783fa01a9d91b4b5c587de042586afb3 (patch) | |
tree | 1c10190c53fe12169c726b68fa87855a10ae292d /libssh/error.c | |
parent | 8af13665ab6dc428b90adbaa1a45cf2e2d73e588 (diff) | |
download | libssh-53a24a4f783fa01a9d91b4b5c587de042586afb3.tar.gz libssh-53a24a4f783fa01a9d91b4b5c587de042586afb3.tar.xz libssh-53a24a4f783fa01a9d91b4b5c587de042586afb3.zip |
Format ssh_get_error().
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@721 7dcaeef0-15fb-0310-b436-a5af3365683c
Diffstat (limited to 'libssh/error.c')
-rw-r--r-- | libssh/error.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/libssh/error.c b/libssh/error.c index 94ff73a..b55640e 100644 --- a/libssh/error.c +++ b/libssh/error.c @@ -60,13 +60,17 @@ void ssh_set_error(void *error, int code, const char *descr, ...) { err->error_code = code; } -/** \brief retrieve an error text message - * \param error the ssh session pointer - * \return a static string describing the error +/** + * @brief Retrieve an error text message. + * + * @param error The ssh session pointer. + * + * @return A static string describing the error. */ -const char *ssh_get_error(void *error){ - struct error_struct *err=error; - return err->error_buffer; +const char *ssh_get_error(void *error) { + struct error_struct *err = error; + + return err->error_buffer; } /** \brief retrieve the error code from the last |