From 53a24a4f783fa01a9d91b4b5c587de042586afb3 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 5 May 2009 07:27:16 +0000 Subject: Format ssh_get_error(). git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@721 7dcaeef0-15fb-0310-b436-a5af3365683c --- libssh/error.c | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/libssh/error.c b/libssh/error.c index 94ff73a3..b55640e2 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 -- cgit