mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-11-27 13:21:11 +03:00
Use a negative value for SSH_AGAIN.
This is needed for function which return the length read for example. If we read only one byte then 1 would be returned and some function may think that it has to read again. git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@603 7dcaeef0-15fb-0310-b436-a5af3365683c
This commit is contained in:
@@ -149,7 +149,7 @@ typedef int socket_t;
|
|||||||
/* error return codes */
|
/* error return codes */
|
||||||
#define SSH_OK 0 /* No error */
|
#define SSH_OK 0 /* No error */
|
||||||
#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 -2 /* the nonblocking call must be repeated */
|
||||||
|
|
||||||
const 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);
|
||||||
|
|||||||
Reference in New Issue
Block a user