]> git.ipfire.org Git - thirdparty/rsync.git/commitdiff
Some var cleanup; move test-util vars into t_stub.c.
authorWayne Davison <wayne@opencoder.net>
Sun, 26 Apr 2020 21:05:27 +0000 (14:05 -0700)
committerWayne Davison <wayne@opencoder.net>
Sun, 26 Apr 2020 21:54:43 +0000 (14:54 -0700)
Makefile.in
log.c
t_stub.c
t_unsafe.c
tls.c
trimslash.c

index 536be42004c9102bc54831313172bdca5b1333d4..596495624b9fd7ad0f773c0abb8be20a7af143cd 100644 (file)
@@ -46,7 +46,7 @@ popt_OBJS=popt/findme.o  popt/popt.o  popt/poptconfig.o \
        popt/popthelp.o popt/poptparse.o
 OBJS=$(OBJS1) $(OBJS2) $(OBJS3) $(DAEMON_OBJ) $(LIBOBJ) @BUILD_ZLIB@ @BUILD_POPT@
 
-TLS_OBJ = tls.o syscall.o lib/compat.o lib/snprintf.o lib/permstring.o lib/sysxattrs.o @BUILD_POPT@
+TLS_OBJ = tls.o syscall.o t_stub.o lib/compat.o lib/snprintf.o lib/permstring.o lib/sysxattrs.o @BUILD_POPT@
 
 # Programs we must have to run the test cases
 CHECK_PROGS = rsync$(EXEEXT) tls$(EXEEXT) getgroups$(EXEEXT) getfsdev$(EXEEXT) \
@@ -127,7 +127,7 @@ getgroups$(EXEEXT): getgroups.o
 getfsdev$(EXEEXT): getfsdev.o
        $(CC) $(CFLAGS) $(LDFLAGS) -o $@ getfsdev.o $(LIBS)
 
-TRIMSLASH_OBJ = trimslash.o syscall.o lib/compat.o lib/snprintf.o
+TRIMSLASH_OBJ = trimslash.o syscall.o t_stub.o lib/compat.o lib/snprintf.o
 trimslash$(EXEEXT): $(TRIMSLASH_OBJ)
        $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(TRIMSLASH_OBJ) $(LIBS)
 
@@ -283,7 +283,7 @@ check29: all $(CHECK_PROGS) $(CHECK_SYMLINKS)
 check30: all $(CHECK_PROGS) $(CHECK_SYMLINKS)
        rsync_bin=`pwd`/rsync$(EXEEXT) $(srcdir)/runtests.sh --protocol=30
 
-wildtest.o: wildtest.c lib/wildmatch.c rsync.h config.h
+wildtest.o: wildtest.c t_stub.o lib/wildmatch.c rsync.h config.h
 wildtest$(EXEEXT): wildtest.o lib/compat.o lib/snprintf.o @BUILD_POPT@
        $(CC) $(CFLAGS) $(LDFLAGS) -o $@ wildtest.o lib/compat.o lib/snprintf.o @BUILD_POPT@ $(LIBS)
 
diff --git a/log.c b/log.c
index ae6214da91a876908150b74e68ca912e33050e0a..059df046b8b431e589972424f7b874059d9be20a 100644 (file)
--- a/log.c
+++ b/log.c
@@ -47,7 +47,6 @@ extern int64 total_data_written;
 extern int64 total_data_read;
 extern mode_t orig_umask;
 extern char *auth_user;
-extern char *checksum_choice;
 extern char *stdout_format;
 extern char *logfile_format;
 extern char *logfile_name;
index 84dd88f4afea943934d2312e5e640ca7e2f79780..17baee8259f8555f34f152bc4b8e3305548cd30c 100644 (file)
--- a/t_stub.c
+++ b/t_stub.c
@@ -28,9 +28,10 @@ int protect_args = 0;
 int module_id = -1;
 int relative_paths = 0;
 int module_dirlen = 0;
-int preserve_acls = 0;
 int preserve_times = 0;
 int preserve_xattrs = 0;
+int preserve_perms = 0;
+int preserve_executability = 0;
 int open_noatime = 0;
 char *partial_dir;
 char *module_dir;
index 4ab6850ab03096092e3b3990a1077a181866987f..0071bf6047ffd44d314daaa0940ed6fca4d2e3d0 100644 (file)
@@ -28,9 +28,6 @@ int am_root = 0;
 int am_sender = 1;
 int read_only = 0;
 int list_only = 0;
-int human_readable = 0;
-int preserve_perms = 0;
-int preserve_executability = 0;
 short info_levels[COUNT_INFO], debug_levels[COUNT_DEBUG];
 
 int
diff --git a/tls.c b/tls.c
index ac402eba9429a8357fdd23e722aed8546cd8a4ab..7d48dab87bf6b35007f83891813b1920937bbdf6 100644 (file)
--- a/tls.c
+++ b/tls.c
@@ -49,11 +49,6 @@ int list_only = 0;
 int link_times = 0;
 int link_owner = 0;
 int nsec_times = 0;
-int preserve_perms = 0;
-int preserve_executability = 0;
-int preallocate_files = 0;
-int open_noatime = 0;
-int inplace = 0;
 
 #ifdef SUPPORT_XATTRS
 
index 60a746cb0b792856d1bac493acbb3788e70f0336..1ec928cac46c064f57dc17dfacb0b8de18105009 100644 (file)
@@ -26,11 +26,6 @@ int am_root = 0;
 int am_sender = 1;
 int read_only = 1;
 int list_only = 0;
-int preserve_perms = 0;
-int preserve_executability = 0;
-int preallocate_files = 0;
-int open_noatime = 0;
-int inplace = 0;
 
 int
 main(int argc, char **argv)