diff options
author | Andreas Schneider <mail@cynapses.org> | 2009-04-24 09:52:06 +0000 |
---|---|---|
committer | Andreas Schneider <mail@cynapses.org> | 2009-04-24 09:52:06 +0000 |
commit | b0778ca1691389996da034250fa33f73a9827bd0 (patch) | |
tree | 31191ab5bece0925d22e19b58d91d0c85e0b4dcf /include | |
parent | ac724eb3fb7ab2bf0554a497dd8d63633722ada8 (diff) | |
download | libssh-b0778ca1691389996da034250fa33f73a9827bd0.tar.gz libssh-b0778ca1691389996da034250fa33f73a9827bd0.tar.xz libssh-b0778ca1691389996da034250fa33f73a9827bd0.zip |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/libssh/libssh.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h index 205efa5c..ad3b8b1c 100644 --- a/include/libssh/libssh.h +++ b/include/libssh/libssh.h @@ -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); |