X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/d144e43bb3ea77bdc9d1dd68a648166970822dd6..82ad07c4182f744c07b96a15df4572e559ed7dc8:/sender.c diff --git a/sender.c b/sender.c index 26cdafa0..0dff9e04 100644 --- a/sender.c +++ b/sender.c @@ -182,13 +182,13 @@ void send_files(struct file_list *flist, int f_out, int f_in) unsigned int offset; i = read_int(f_in); - if (i == -1) { + if (i == NDX_DONE) { if (++phase > max_phase) break; csum_length = SUM_LENGTH; if (verbose > 2) rprintf(FINFO, "send_files phase=%d\n", phase); - write_int(f_out, -1); + write_int(f_out, NDX_DONE); /* For inplace: redo phase turns off the backup * flag so that we do a regular inplace send. */ make_backups = 0; @@ -332,5 +332,5 @@ void send_files(struct file_list *flist, int f_out, int f_in) match_report(); - write_int(f_out, -1); + write_int(f_out, NDX_DONE); }