From 2289bf64cc7461a282e064f1717d4906e28c2903 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Mon, 9 Feb 2004 18:32:54 +0000 Subject: [PATCH] The batch-options now set checksum_seed to the appropriate fixed value. --- options.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/options.c b/options.c index cf705dcd..5db7d62c 100644 --- a/options.c +++ b/options.c @@ -88,6 +88,7 @@ int max_delete = 0; int ignore_errors = 0; int modify_window = 0; int blocking_io = -1; +int checksum_seed = 0; unsigned int block_size = 0; @@ -125,6 +126,7 @@ int quiet = 0; int always_checksum = 0; int list_only = 0; +#define FIXED_CHECKSUM_SEED 32761 #define MAX_BATCH_PREFIX_LEN 256 /* Must be less than MAXPATHLEN-13 */ char *batch_prefix = NULL; @@ -551,11 +553,13 @@ int parse_arguments(int *argc, const char ***argv, int frommain) case OPT_WRITE_BATCH: /* popt stores the filename in batch_prefix for us */ write_batch = 1; + checksum_seed = FIXED_CHECKSUM_SEED; break; case OPT_READ_BATCH: /* popt stores the filename in batch_prefix for us */ read_batch = 1; + checksum_seed = FIXED_CHECKSUM_SEED; break; case OPT_LINK_DEST: -- 2.34.1