summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2009-04-05 09:16:15 +0000
committerAndreas Schneider <mail@cynapses.org>2009-04-05 09:16:15 +0000
commitb239fda60c8ca9fef6152d714c587fe1d45d89c9 (patch)
tree4fae148b11996081ac8b2b0e6af3182061ae39ae
parentf286e8c9b0a7287a74a59d33e6bfb7324ae744ec (diff)
downloadlibssh-b239fda60c8ca9fef6152d714c587fe1d45d89c9.tar.gz
libssh-b239fda60c8ca9fef6152d714c587fe1d45d89c9.tar.xz
libssh-b239fda60c8ca9fef6152d714c587fe1d45d89c9.zip
Fix compile warning.
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@391 7dcaeef0-15fb-0310-b436-a5af3365683c
-rw-r--r--include/libssh/priv.h2
-rw-r--r--libssh/error.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/libssh/priv.h b/include/libssh/priv.h
index e4b5e6c..7cc2cb2 100644
--- a/include/libssh/priv.h
+++ b/include/libssh/priv.h
@@ -510,7 +510,7 @@ int ssh_send_banner(SSH_SESSION *session, int is_server);
char *ssh_get_banner(SSH_SESSION *session);
/* errors.c */
-void ssh_set_error(void *error,int code,char *descr,...);
+void ssh_set_error(void *error, int code, const char *descr, ...);
/* in dh.c */
/* DH key generation */
diff --git a/libssh/error.c b/libssh/error.c
index 36fed43..b44ab40 100644
--- a/libssh/error.c
+++ b/libssh/error.c
@@ -36,7 +36,7 @@
*/
/* ssh_set_error registers an error with a description. the error code is the class of error, and description is obvious.*/
-void ssh_set_error(void *error,int code,char *descr,...){
+void ssh_set_error(void *error, int code, const char *descr, ...) {
struct error_struct *err= error;
va_list va;
va_start(va,descr);