summaryrefslogtreecommitdiffstats
path: root/libssh/error.c
diff options
context:
space:
mode:
Diffstat (limited to 'libssh/error.c')
-rw-r--r--libssh/error.c16
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