X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/da9d12f5d93724cb07a4107aa7aff92be9fb2ddb..d17e1dd2dae6bfd9e2e147a0dd3039848dd43abc:/sender.c diff --git a/sender.c b/sender.c index b7ebbe1f..1d9a132b 100644 --- a/sender.c +++ b/sender.c @@ -34,8 +34,6 @@ extern int am_server; * and transmits them to the receiver. The sender process runs on the * machine holding the source files. **/ - - void read_sum_head(int f, struct sum_struct *sum) { extern int protocol_version; @@ -155,6 +153,7 @@ void send_files(struct file_list *flist, int f_out, int f_in) file = flist->files[i]; + stats.current_file_index = i; stats.num_transferred_files++; stats.total_transferred_size += file->length; @@ -193,7 +192,7 @@ void send_files(struct file_list *flist, int f_out, int f_in) } if (write_batch) - write_batch_csum_info(&i, flist->count, s); + write_batch_csum_info(&i, s); if (!read_batch) { fd = do_open(fname, O_RDONLY, 0);