1
1

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
Этот коммит содержится в:
Andreas Schneider 2009-04-05 10:38:30 +00:00
родитель 6492e3e69c
Коммит c8265940ea
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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;
}