From c8265940ea42fbc77cf7cea84f371280068c0a0b Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Sun, 5 Apr 2009 10:38:30 +0000 Subject: Make return of ssh_get_error() const. git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@403 7dcaeef0-15fb-0310-b436-a5af3365683c --- libssh/error.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libssh/error.c') diff --git a/libssh/error.c b/libssh/error.c index b44ab40..8503ff8 100644 --- a/libssh/error.c +++ b/libssh/error.c @@ -49,7 +49,7 @@ void ssh_set_error(void *error, int code, const char *descr, ...) { * \param error the ssh session pointer * \return a static string describing the error */ -char *ssh_get_error(void *error){ +const char *ssh_get_error(void *error){ struct error_struct *err=error; return err->error_buffer; } -- cgit