]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Correct data type for return value from read()
authorJoel Rosdahl <joel@rosdahl.net>
Wed, 18 Aug 2010 20:49:53 +0000 (22:49 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Wed, 18 Aug 2010 20:49:53 +0000 (22:49 +0200)
hash.c

diff --git a/hash.c b/hash.c
index 6220a545f85eea93cae98c6381904693419d9654..0e43f862003ab658c70f0851da2649dcc92f5ae1 100644 (file)
--- 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);