From 8801138b474c9f8c233eabcbfe49b8e1ae95958e Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Fri, 4 Jul 2003 15:11:44 +0000 Subject: [PATCH] Made rprintf() of size_t value portable. --- generator.c | 4 ++-- io.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/generator.c b/generator.c index aca5f7b2..812fef42 100644 --- a/generator.c +++ b/generator.c @@ -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); diff --git a/io.c b/io.c index 117a9d62..064bf3b6 100644 --- a/io.c +++ b/io.c @@ -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); } -- 2.34.1