Make sparse_seek an OFF_T (pointed out by Pedro Valasco).
[rsync/rsync.git] / fileio.c
index 93cf573..822bb1a 100644 (file)
--- a/fileio.c
+++ b/fileio.c
@@ -20,6 +20,7 @@
  */
 
 #include "rsync.h"
+#include "inums.h"
 
 #ifndef ENODATA
 #define ENODATA EAGAIN
@@ -28,7 +29,7 @@
 extern int sparse_files;
 
 static char last_byte;
-static size_t sparse_seek = 0;
+static OFF_T sparse_seek = 0;
 
 int sparse_end(int f)
 {
@@ -233,7 +234,7 @@ char *map_ptr(struct map_struct *map, OFF_T offset, int32 len)
                OFF_T ret = do_lseek(map->fd, read_start, SEEK_SET);
                if (ret != read_start) {
                        rsyserr(FERROR, errno, "lseek returned %s, not %s",
-                               big_num(ret, 0), big_num(read_start, 0));
+                               big_num(ret), big_num(read_start));
                        exit_cleanup(RERR_FILEIO);
                }
                map->p_fd_offset = read_start;