aboutsummaryrefslogtreecommitdiffstats
path: root/compat.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1996-06-27 05:16:15 +0000
committerAndrew Tridgell <tridge@samba.org>1996-06-27 05:16:15 +0000
commit43a481dc5586a16af249fbae611b36442bed6a8c (patch)
treee4aa19da93a18e0c67ed487862f8676f417a272d /compat.c
parent4fe159a81d1f0c39aaa7f05dbb33b36d231e7c80 (diff)
downloadandroid_external_rsync-43a481dc5586a16af249fbae611b36442bed6a8c.tar.gz
android_external_rsync-43a481dc5586a16af249fbae611b36442bed6a8c.tar.bz2
android_external_rsync-43a481dc5586a16af249fbae611b36442bed6a8c.zip
added csum-length option
Diffstat (limited to 'compat.c')
-rw-r--r--compat.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/compat.c b/compat.c
index 2b72f9ba..64808a04 100644
--- a/compat.c
+++ b/compat.c
@@ -21,6 +21,8 @@
#include "rsync.h"
+extern int csum_length;
+
extern int preserve_links;
extern int preserve_perms;
extern int preserve_devices;
@@ -93,7 +95,7 @@ void send_file_entry_v10(struct file_struct *file,int f)
#endif
if (always_checksum) {
- write_buf(f,file->sum,SUM_LENGTH);
+ write_buf(f,file->sum,csum_length);
}
last_mode = file->mode;
@@ -159,7 +161,7 @@ void receive_file_entry_v10(struct file_struct *file,
#endif
if (always_checksum)
- read_buf(f,file->sum,SUM_LENGTH);
+ read_buf(f,file->sum,csum_length);
last_mode = file->mode;
last_dev = file->dev;