mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-11-27 13:21:11 +03:00
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
This commit is contained in:
@@ -151,7 +151,7 @@ typedef int socket_t;
|
|||||||
#define SSH_ERROR -1 /* error of some kind */
|
#define SSH_ERROR -1 /* error of some kind */
|
||||||
#define SSH_AGAIN 1 /* the nonblocking call must be repeated */
|
#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);
|
int ssh_get_error_code(void *error);
|
||||||
|
|
||||||
/* version checks */
|
/* version checks */
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ void ssh_set_error(void *error, int code, const char *descr, ...) {
|
|||||||
* \param error the ssh session pointer
|
* \param error the ssh session pointer
|
||||||
* \return a static string describing the error
|
* \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;
|
struct error_struct *err=error;
|
||||||
return err->error_buffer;
|
return err->error_buffer;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user