]> andersk Git - openssh.git/blobdiff - atomicio.c
- OpenBSD CVS updates to v1.2.3
[openssh.git] / atomicio.c
index 47f8190ab0781126d6923402e2799937f30bf8e4..321af513aeffbd6139553f25560a6e09cdf73191 100644 (file)
@@ -32,14 +32,14 @@ RCSID("$Id$");
 /*
  * ensure all of data on socket comes through. f==read || f==write
  */
-int
+ssize_t
 atomicio(f, fd, s, n)
-       int (*f) ();
+       ssize_t (*f) ();
        int fd;
        void *s;
        size_t n;
 {
-       int res, pos = 0;
+       ssize_t res, pos = 0;
 
        while (n > pos) {
                res = (f) (fd, (char*)s + pos, n - pos);
This page took 0.238361 seconds and 4 git commands to generate.