History

Moved some externs.

Wayne Davison committed 22 years ago

Commit 57747861 parent 1a9ec1f1 file · +7 −9Browse files

Showing the changes to generator.c (1 of 1 file). Show all

Unified · Split

generator.c+7−9
@@ -43,6 +43,13 @@ extern int protocol_version; · 42 unmodified lines
4343 extern int always_checksum;
4444 extern char *compare_dest;
4545 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;
4653
4754
4855 /* 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
204211 * Whew. */
205212 static BOOL disable_deltas_p(void)
206213 {
207− extern int whole_file;
208− extern int local_server;
209− extern int write_batch;
210−
211214 if (whole_file > 0)
212215 return True;
213216 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
270273 int statret;
271274 char *fnamecmp;
272275 char fnamecmpbuf[MAXPATHLEN];
273− extern char *compare_dest;
274− extern int list_only;
275− extern int only_existing;
276− extern int orig_umask;
277276
278277 if (list_only)
279278 return;
@@ -335,7 +334,6 @@ void recv_generator(char *fname, struct file_struct *file, int i, int f_out) · 55 unmodified lines
335334 #if SUPPORT_LINKS
336335 char lnk[MAXPATHLEN];
337336 int l;
338− extern int safe_symlinks;
339337
340338 if (safe_symlinks && unsafe_symlink(file->u.link, fname)) {
341339 if (verbose) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t