- read_buf(f_in,file_sum2,MD4_SUM_LENGTH);
- if (verbose > 2) {
-@@ -375,7 +386,7 @@ int recv_files(int f_in,struct file_list
- if (fd1 != -1 && do_fstat(fd1,&st) != 0) {
- rsyserr(FERROR, errno, "fstat %s failed",
- full_fname(fnamecmp));
-- receive_data(f_in,NULL,-1,NULL,file->length);
-+ receive_data(f_in,NULL,-1,NULL,file->length,NULL);
- close(fd1);
- continue;
- }
-@@ -388,7 +399,7 @@ int recv_files(int f_in,struct file_list
- */
- rprintf(FERROR,"recv_files: %s is a directory\n",
- full_fname(fnamecmp));
-- receive_data(f_in, NULL, -1, NULL, file->length);
-+ receive_data(f_in,NULL,-1,NULL,file->length,NULL);
- close(fd1);
- continue;
- }
-@@ -440,7 +451,7 @@ int recv_files(int f_in,struct file_list
- if (fd2 == -1) {
- rsyserr(FERROR, errno, "mkstemp %s failed",
- full_fname(fnametmp));
-- receive_data(f_in,mapbuf,-1,NULL,file->length);
-+ receive_data(f_in,mapbuf,-1,NULL,file->length,NULL);
- if (mapbuf) unmap_file(mapbuf);
- if (fd1 != -1) close(fd1);
- continue;
-@@ -453,7 +464,11 @@ int recv_files(int f_in,struct file_list
- }
+@@ -351,7 +363,7 @@ static int receive_data(int f_in, char *fname_r, int fd_r, OFF_T size_r,
+
+ static void discard_receive_data(int f_in, OFF_T length)
+ {
+- receive_data(f_in, NULL, -1, 0, NULL, -1, length);
++ receive_data(f_in, NULL, -1, 0, NULL, -1, length, NULL);
+ }
+
+ static void handle_delayed_updates(char *local_name)
+@@ -779,7 +791,7 @@ int recv_files(int f_in, int f_out, char *local_name)