Commit 8801138b authored by Wayne Davison's avatar Wayne Davison

Made rprintf() of size_t value portable.

parent 24733919
......@@ -247,8 +247,8 @@ static void generate_and_send_sums(struct map_struct *buf, OFF_T len, int f_out)
if (verbose > 3) {
rprintf(FINFO,
"chunk[%d] offset=%.0f len=%d sum1=%08lx\n",
i, (double) offset, n1, (unsigned long) sum1);
"chunk[%ld] offset=%.0f len=%d sum1=%08lx\n",
(long)i,(double)offset,n1,(unsigned long)sum1);
}
write_int(f_out, sum1);
write_buf(f_out, sum2, sum.s2length);
......
......@@ -473,8 +473,8 @@ static int read_unbuffered(int fd, char *buf, size_t len)
}
if (remaining > sizeof(line) - 1) {
rprintf(FERROR, "multiplexing overflow %d\n\n",
remaining);
rprintf(FERROR, "multiplexing overflow %ld\n\n",
(long)remaining);
exit_cleanup(RERR_STREAMIO);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment