1
1

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
Этот коммит содержится в:
Andreas Schneider 2009-04-24 09:52:06 +00:00
родитель ac724eb3fb
Коммит b0778ca169

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

@ -149,7 +149,7 @@ typedef int socket_t;
/* error return codes */
#define SSH_OK 0 /* No error */
#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);
int ssh_get_error_code(void *error);