summaryrefslogtreecommitdiff
path: root/lib-src/test-distrib.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib-src/test-distrib.c')
-rw-r--r--lib-src/test-distrib.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib-src/test-distrib.c b/lib-src/test-distrib.c
index 880bd115882..1487c2bab57 100644
--- a/lib-src/test-distrib.c
+++ b/lib-src/test-distrib.c
@@ -52,9 +52,10 @@ char buf[300];
/* Like `read' but keeps trying until it gets SIZE bytes or reaches eof. */
int
-cool_read (int fd, char *buf, int size)
+cool_read (int fd, char *buf, size_t size)
{
- int num, sofar = 0;
+ ssize_t num;
+ size_t sofar = 0;
while (1)
{