Correct data type for return value from read()

This commit is contained in:
Joel Rosdahl 2010-08-18 22:49:53 +02:00
parent 7784733a0d
commit 456e545d43

2
hash.c
View File

@ -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);