Skip to content

Commit f14adfd

Browse files
committed
Some var cleanup; move test-util vars into t_stub.c.
1 parent d218be3 commit f14adfd

File tree

6 files changed

+5
-18
lines changed

6 files changed

+5
-18
lines changed

Makefile.in

+3-3
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ popt_OBJS=popt/findme.o popt/popt.o popt/poptconfig.o \
4646
popt/popthelp.o popt/poptparse.o
4747
OBJS=$(OBJS1) $(OBJS2) $(OBJS3) $(DAEMON_OBJ) $(LIBOBJ) @BUILD_ZLIB@ @BUILD_POPT@
4848

49-
TLS_OBJ = tls.o syscall.o lib/compat.o lib/snprintf.o lib/permstring.o lib/sysxattrs.o @BUILD_POPT@
49+
TLS_OBJ = tls.o syscall.o t_stub.o lib/compat.o lib/snprintf.o lib/permstring.o lib/sysxattrs.o @BUILD_POPT@
5050

5151
# Programs we must have to run the test cases
5252
CHECK_PROGS = rsync$(EXEEXT) tls$(EXEEXT) getgroups$(EXEEXT) getfsdev$(EXEEXT) \
@@ -127,7 +127,7 @@ getgroups$(EXEEXT): getgroups.o
127127
getfsdev$(EXEEXT): getfsdev.o
128128
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ getfsdev.o $(LIBS)
129129

130-
TRIMSLASH_OBJ = trimslash.o syscall.o lib/compat.o lib/snprintf.o
130+
TRIMSLASH_OBJ = trimslash.o syscall.o t_stub.o lib/compat.o lib/snprintf.o
131131
trimslash$(EXEEXT): $(TRIMSLASH_OBJ)
132132
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(TRIMSLASH_OBJ) $(LIBS)
133133

@@ -283,7 +283,7 @@ check29: all $(CHECK_PROGS) $(CHECK_SYMLINKS)
283283
check30: all $(CHECK_PROGS) $(CHECK_SYMLINKS)
284284
rsync_bin=`pwd`/rsync$(EXEEXT) $(srcdir)/runtests.sh --protocol=30
285285

286-
wildtest.o: wildtest.c lib/wildmatch.c rsync.h config.h
286+
wildtest.o: wildtest.c t_stub.o lib/wildmatch.c rsync.h config.h
287287
wildtest$(EXEEXT): wildtest.o lib/compat.o lib/snprintf.o @BUILD_POPT@
288288
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ wildtest.o lib/compat.o lib/snprintf.o @BUILD_POPT@ $(LIBS)
289289

log.c

-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ extern int64 total_data_written;
4747
extern int64 total_data_read;
4848
extern mode_t orig_umask;
4949
extern char *auth_user;
50-
extern char *checksum_choice;
5150
extern char *stdout_format;
5251
extern char *logfile_format;
5352
extern char *logfile_name;

t_stub.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,10 @@ int protect_args = 0;
2828
int module_id = -1;
2929
int relative_paths = 0;
3030
int module_dirlen = 0;
31-
int preserve_acls = 0;
3231
int preserve_times = 0;
3332
int preserve_xattrs = 0;
33+
int preserve_perms = 0;
34+
int preserve_executability = 0;
3435
int open_noatime = 0;
3536
char *partial_dir;
3637
char *module_dir;

t_unsafe.c

-3
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@ int am_root = 0;
2828
int am_sender = 1;
2929
int read_only = 0;
3030
int list_only = 0;
31-
int human_readable = 0;
32-
int preserve_perms = 0;
33-
int preserve_executability = 0;
3431
short info_levels[COUNT_INFO], debug_levels[COUNT_DEBUG];
3532

3633
int

tls.c

-5
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,6 @@ int list_only = 0;
4949
int link_times = 0;
5050
int link_owner = 0;
5151
int nsec_times = 0;
52-
int preserve_perms = 0;
53-
int preserve_executability = 0;
54-
int preallocate_files = 0;
55-
int open_noatime = 0;
56-
int inplace = 0;
5752

5853
#ifdef SUPPORT_XATTRS
5954

trimslash.c

-5
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,6 @@ int am_root = 0;
2626
int am_sender = 1;
2727
int read_only = 1;
2828
int list_only = 0;
29-
int preserve_perms = 0;
30-
int preserve_executability = 0;
31-
int preallocate_files = 0;
32-
int open_noatime = 0;
33-
int inplace = 0;
3429

3530
int
3631
main(int argc, char **argv)

0 commit comments

Comments
 (0)