aboutsummaryrefslogtreecommitdiffstats
path: root/compat.c
diff options
context:
space:
mode:
Diffstat (limited to 'compat.c')
-rw-r--r--compat.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/compat.c b/compat.c
index c2a11038..d1c367a7 100644
--- a/compat.c
+++ b/compat.c
@@ -38,7 +38,6 @@ extern int preserve_times;
extern int always_checksum;
extern int checksum_seed;
-
extern int protocol_version;
extern int verbose;
@@ -85,11 +84,9 @@ void setup_protocol(int f_out,int f_in)
}
if (am_server) {
- if (read_batch || write_batch)
- checksum_seed = 32761;
- else
+ if (!checksum_seed)
checksum_seed = time(NULL);
- write_int(f_out,checksum_seed);
+ write_int(f_out, checksum_seed);
} else {
checksum_seed = read_int(f_in);
}