};
/* The basic function to hash a file */
-static off_t hash_file(struct MD5Context *ctx, int fd)
+static size_t hash_file(struct MD5Context *ctx, int fd)
{
- off_t count = 0;
+ size_t count = 0;
ssize_t r;
unsigned char buf[BUFFERSIZE];
struct MD5Context *ctx, int verbose)
{
int fd, i;
- int count = 0;
+ size_t count = 0;
for (i = 0; i < nfiles; i++) {
if (files[i][0] == '-' && !files[i][1])
count = hash_file(ctx, fd);
if (verbose)
fprintf(stderr,
- P_("Got %d byte from %s\n",
- "Got %d bytes from %s\n", count),
+ P_("Got %zu byte from %s\n",
+ "Got %zu bytes from %s\n", count),
count, files[i]);
if (fd != STDIN_FILENO)