diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2000-10-17 20:28:11 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2000-10-17 20:28:11 +0000 |
commit | 01e24f74b1a877d38239e7bfc5664b24b3cc29bd (patch) | |
tree | 1de5920c51218054033053d411d5d6640b2b8483 /usr.bin/ssh | |
parent | 0d1d6c0df4ede269401300822b163764693d5e79 (diff) |
return number of characters processed; ok deraadt@
Diffstat (limited to 'usr.bin/ssh')
-rw-r--r-- | usr.bin/ssh/atomicio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/atomicio.c b/usr.bin/ssh/atomicio.c index 019eda813cf..98edfa67d09 100644 --- a/usr.bin/ssh/atomicio.c +++ b/usr.bin/ssh/atomicio.c @@ -24,7 +24,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: atomicio.c,v 1.5 2000/09/07 20:27:49 deraadt Exp $"); +RCSID("$OpenBSD: atomicio.c,v 1.6 2000/10/17 20:28:10 markus Exp $"); #include "xmalloc.h" #include "ssh.h" @@ -49,7 +49,7 @@ atomicio(f, fd, _s, n) if (errno == EINTR || errno == EAGAIN) continue; case 0: - return (res); + return (pos); default: pos += res; } |