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
43extern int always_checksum;43extern int always_checksum;
44extern char *compare_dest;44extern char *compare_dest;
45extern int link_dest;45extern int link_dest;
46extern int whole_file;
47extern int local_server;
48extern int write_batch;
49extern int list_only;
50extern int only_existing;
51extern int orig_umask;
52extern 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. */
205static BOOL disable_deltas_p(void)212static 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_LINKS334#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) {

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