Made rprintf() of size_t value portable.
authorWayne Davison <wayned@samba.org>
Fri, 4 Jul 2003 15:11:44 +0000 (15:11 +0000)
committerWayne Davison <wayned@samba.org>
Fri, 4 Jul 2003 15:11:44 +0000 (15:11 +0000)
generator.c
io.c

index aca5f7b..812fef4 100644 (file)
@@ -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 117a9d6..064bf3b 100644 (file)
--- 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);
                }