From 1717d42165212cf89d18204a6e85bb50ab60d4f2 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Fri, 8 Jul 2011 00:35:33 +0200 Subject: [PATCH] read() and write() return ssize_t, not size_t. rv < 0 error checks were always false. --- test/runner-unix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/runner-unix.c b/test/runner-unix.c index 61d6a96d..fa4c63bb 100644 --- a/test/runner-unix.c +++ b/test/runner-unix.c @@ -248,7 +248,7 @@ int process_copy_output(process_info_t *p, int fd) { return -1; } - size_t nread, nwritten; + ssize_t nread, nwritten; char buf[1024]; while ((nread = read(fileno(p->stdout_file), buf, 1024)) > 0) {