summaryrefslogtreecommitdiff
path: root/atomicio.c
diff options
context:
space:
mode:
Diffstat (limited to 'atomicio.c')
-rw-r--r--atomicio.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/atomicio.c b/atomicio.c
index fcab2ea7f..d6797ec73 100644
--- a/atomicio.c
+++ b/atomicio.c
@@ -24,7 +24,7 @@
24 */ 24 */
25 25
26#include "includes.h" 26#include "includes.h"
27RCSID("$Id: atomicio.c,v 1.8 1999/12/14 22:06:28 damien Exp $"); 27RCSID("$Id: atomicio.c,v 1.9 2000/03/09 10:27:50 damien Exp $");
28 28
29#include "xmalloc.h" 29#include "xmalloc.h"
30#include "ssh.h" 30#include "ssh.h"
@@ -32,14 +32,14 @@ RCSID("$Id: atomicio.c,v 1.8 1999/12/14 22:06:28 damien Exp $");
32/* 32/*
33 * ensure all of data on socket comes through. f==read || f==write 33 * ensure all of data on socket comes through. f==read || f==write
34 */ 34 */
35int 35ssize_t
36atomicio(f, fd, s, n) 36atomicio(f, fd, s, n)
37 int (*f) (); 37 ssize_t (*f) ();
38 int fd; 38 int fd;
39 void *s; 39 void *s;
40 size_t n; 40 size_t n;
41{ 41{
42 int res, pos = 0; 42 ssize_t res, pos = 0;
43 43
44 while (n > pos) { 44 while (n > pos) {
45 res = (f) (fd, (char*)s + pos, n - pos); 45 res = (f) (fd, (char*)s + pos, n - pos);