1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-12-02 01:17:52 +03:00

Fix compile warning.

git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@391 7dcaeef0-15fb-0310-b436-a5af3365683c
This commit is contained in:
Andreas Schneider
2009-04-05 09:16:15 +00:00
parent f286e8c9b0
commit b239fda60c
2 changed files with 2 additions and 2 deletions

View File

@@ -510,7 +510,7 @@ int ssh_send_banner(SSH_SESSION *session, int is_server);
char *ssh_get_banner(SSH_SESSION *session); char *ssh_get_banner(SSH_SESSION *session);
/* errors.c */ /* 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 */ /* in dh.c */
/* DH key generation */ /* DH key generation */

View File

@@ -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.*/ /* 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; struct error_struct *err= error;
va_list va; va_list va;
va_start(va,descr); va_start(va,descr);