diff options
author | Andreas Schneider <mail@cynapses.org> | 2009-04-05 10:38:30 +0000 |
---|---|---|
committer | Andreas Schneider <mail@cynapses.org> | 2009-04-05 10:38:30 +0000 |
commit | c8265940ea42fbc77cf7cea84f371280068c0a0b (patch) | |
tree | c1e1fb0ccd99b309b645910d7be9a86f6dfe941f | |
parent | 6492e3e69c58068a817258a86c869ea4a376acc0 (diff) | |
download | libssh-c8265940ea42fbc77cf7cea84f371280068c0a0b.tar.gz libssh-c8265940ea42fbc77cf7cea84f371280068c0a0b.tar.xz libssh-c8265940ea42fbc77cf7cea84f371280068c0a0b.zip |
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
-rw-r--r-- | include/libssh/libssh.h | 2 | ||||
-rw-r--r-- | libssh/error.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h index 3ede96a6..6dce1006 100644 --- a/include/libssh/libssh.h +++ b/include/libssh/libssh.h @@ -151,7 +151,7 @@ typedef int socket_t; #define SSH_ERROR -1 /* error of some kind */ #define SSH_AGAIN 1 /* the nonblocking call must be repeated */ -char *ssh_get_error(void *error); +const char *ssh_get_error(void *error); int ssh_get_error_code(void *error); /* version checks */ diff --git a/libssh/error.c b/libssh/error.c index b44ab402..8503ff85 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; } |