- read_buf(f_in,file_sum2,MD4_SUM_LENGTH);
- if (verbose > 2)
-@@ -374,7 +385,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;
- }
-@@ -387,7 +398,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;
- }
-@@ -443,7 +454,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)
-@@ -457,7 +468,11 @@ int recv_files(int f_in,struct file_list
- rprintf(FINFO, "%s\n", fname);
+ if (mapbuf)
+ unmap_file(mapbuf);
+@@ -314,7 +325,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)
+@@ -675,7 +686,7 @@ int recv_files(int f_in, char *local_name)