Showing the changes to generator.c (1 of 1 file). Show all
Unified · Split
| @@ -43,6 +43,13 @@ extern int protocol_version; · 42 unmodified lines | |||
| 43 | extern int always_checksum; | 43 | extern int always_checksum; |
| 44 | extern char *compare_dest; | 44 | extern char *compare_dest; |
| 45 | extern int link_dest; | 45 | extern int link_dest; |
| 46 | extern int whole_file; | ||
| 47 | extern int local_server; | ||
| 48 | extern int write_batch; | ||
| 49 | extern int list_only; | ||
| 50 | extern int only_existing; | ||
| 51 | extern int orig_umask; | ||
| 52 | extern int safe_symlinks; | ||
| 46 | 53 | ||
| 47 | 54 | ||
| 48 | /* choose whether to skip a particular file */ | 55 | /* choose whether to skip a particular file */ |
| @@ -204,10 +211,6 @@ static void sum_sizes_sqroot(struct sum_struct *sum, uint64 len) · 155 unmodified lines | |||
| 204 | * Whew. */ | 211 | * Whew. */ |
| 205 | static BOOL disable_deltas_p(void) | 212 | static BOOL disable_deltas_p(void) |
| 206 | { | 213 | { |
| 207 | extern int whole_file; | ||
| 208 | extern int local_server; | ||
| 209 | extern int write_batch; | ||
| 210 | |||
| 211 | if (whole_file > 0) | 214 | if (whole_file > 0) |
| 212 | return True; | 215 | return True; |
| 213 | if (whole_file == 0 || write_batch) | 216 | if (whole_file == 0 || write_batch) |
| @@ -270,10 +273,6 @@ void recv_generator(char *fname, struct file_struct *file, int i, int f_out) · 56 unmodified lines | |||
| 270 | int statret; | 273 | int statret; |
| 271 | char *fnamecmp; | 274 | char *fnamecmp; |
| 272 | char fnamecmpbuf[MAXPATHLEN]; | 275 | char fnamecmpbuf[MAXPATHLEN]; |
| 273 | extern char *compare_dest; | ||
| 274 | extern int list_only; | ||
| 275 | extern int only_existing; | ||
| 276 | extern int orig_umask; | ||
| 277 | 276 | ||
| 278 | if (list_only) | 277 | if (list_only) |
| 279 | return; | 278 | return; |
| @@ -335,7 +334,6 @@ void recv_generator(char *fname, struct file_struct *file, int i, int f_out) · 55 unmodified lines | |||
| 335 | #if SUPPORT_LINKS | 334 | #if SUPPORT_LINKS |
| 336 | char lnk[MAXPATHLEN]; | 335 | char lnk[MAXPATHLEN]; |
| 337 | int l; | 336 | int l; |
| 338 | extern int safe_symlinks; | ||
| 339 | 337 | ||
| 340 | if (safe_symlinks && unsafe_symlink(file->u.link, fname)) { | 338 | if (safe_symlinks && unsafe_symlink(file->u.link, fname)) { |
| 341 | if (verbose) { | 339 | if (verbose) { |