From: Joel Rosdahl Date: Wed, 18 Aug 2010 20:49:53 +0000 (+0200) Subject: Correct data type for return value from read() X-Git-Tag: v3.1~67 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=456e545d43017dd2d5d2bb8bccf9a9b470fc9ca8;p=thirdparty%2Fccache.git Correct data type for return value from read() --- diff --git a/hash.c b/hash.c index 6220a545f..0e43f8620 100644 --- a/hash.c +++ b/hash.c @@ -103,7 +103,7 @@ int hash_fd(struct mdfour *md, int fd) { char buf[1024]; - size_t n; + ssize_t n; while ((n = read(fd, buf, sizeof(buf))) > 0) { hash_buffer(md, buf, n);