diff options
| author | Wayne Davison <wayned@samba.org> | 2006-12-03 06:44:16 +0000 |
|---|---|---|
| committer | Wayne Davison <wayned@samba.org> | 2006-12-03 06:44:16 +0000 |
| commit | 82ad07c4182f744c07b96a15df4572e559ed7dc8 (patch) | |
| tree | 1f6dd4c5f7f72d77dde613a08c1d0e3a8905cc46 /main.c | |
| parent | d144e43bb3ea77bdc9d1dd68a648166970822dd6 (diff) | |
| download | android_external_rsync-82ad07c4182f744c07b96a15df4572e559ed7dc8.tar.gz android_external_rsync-82ad07c4182f744c07b96a15df4572e559ed7dc8.tar.bz2 android_external_rsync-82ad07c4182f744c07b96a15df4572e559ed7dc8.zip | |
- Typical tranfers now save 12-20 bytes per file because several vars
were moved out of file_struct into an optional member-var setup.
- Renamed and reorganized the FLAG_* defines.
- Use NDX_DONE instead of a literal -1 when sending/checking the
end-of-phase index value.
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -619,7 +619,7 @@ static void read_final_goodbye(int f_in, int f_out) } } - if (i != -1) { + if (i != NDX_DONE) { rprintf(FERROR, "Invalid packet at end of run (%d) [%s]\n", i, who_am_i()); exit_cleanup(RERR_PROTOCOL); @@ -768,7 +768,7 @@ static int do_recv(int f_in,int f_out,struct file_list *flist,char *local_name) io_flush(FULL_FLUSH); if (protocol_version >= 24) { /* send a final goodbye message */ - write_int(f_out, -1); + write_int(f_out, NDX_DONE); } io_flush(FULL_FLUSH); |
