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
Этот коммит содержится в:
родитель
6492e3e69c
Коммит
c8265940ea
@ -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 */
|
||||
|
@ -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;
|
||||
}
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user