summaryrefslogtreecommitdiffstats
path: root/src/md5util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/md5util.c')
-rw-r--r--src/md5util.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/md5util.c b/src/md5util.c
index 209f0bb..d5cc45d 100644
--- a/src/md5util.c
+++ b/src/md5util.c
@@ -98,19 +98,19 @@ int fdmd5(int fd, off_t l, uint8_t md[]) {
}
while (l) {
- ssize_t r;
+ ssize_t k;
- if ((r = read(fd, p, BUFSIZE)) < 0) {
+ if ((k = read(fd, p, BUFSIZE)) < 0) {
fprintf(stderr, "read(): %s\n", strerror(errno));
goto finish;
}
- if (!r)
+ if (!k)
break;
- md5_append(&s, p, r);
+ md5_append(&s, p, k);
- l -= r;
+ l -= k;
}
}