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 | 43 | extern int always_checksum; |
| 44 | 44 | extern char *compare_dest; |
| 45 | 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 | 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 | 211 | * Whew. */ |
| 205 | 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 | 214 | if (whole_file > 0) |
| 212 | 215 | return True; |
| 213 | 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 | 273 | int statret; |
| 271 | 274 | char *fnamecmp; |
| 272 | 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 | 277 | if (list_only) |
| 279 | 278 | return; |
| @@ -335,7 +334,6 @@ void recv_generator(char *fname, struct file_struct *file, int i, int f_out) · 55 unmodified lines | ||
| 335 | 334 | #if SUPPORT_LINKS |
| 336 | 335 | char lnk[MAXPATHLEN]; |
| 337 | 336 | int l; |
| 338 | − extern int safe_symlinks; | |
| 339 | 337 | |
| 340 | 338 | if (safe_symlinks && unsafe_symlink(file->u.link, fname)) { |
| 341 | 339 | if (verbose) { |