aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2003-09-09 15:58:56 +0000
committerWayne Davison <wayned@samba.org>2003-09-09 15:58:56 +0000
commit4f3e9a0fba90430698f6872c3e1d76f7fec6d788 (patch)
tree96a59c5e17ace20dea6bdd54634949c631d34c2f
parent8a9709dee5027238985c79ec7f429c95c577d423 (diff)
downloadandroid_external_rsync-4f3e9a0fba90430698f6872c3e1d76f7fec6d788.tar.gz
android_external_rsync-4f3e9a0fba90430698f6872c3e1d76f7fec6d788.tar.bz2
android_external_rsync-4f3e9a0fba90430698f6872c3e1d76f7fec6d788.zip
Added the new --protocol option.
-rw-r--r--options.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/options.c b/options.c
index 52fc8c75..d0407254 100644
--- a/options.c
+++ b/options.c
@@ -52,7 +52,7 @@ int ignore_times=0;
int delete_mode=0;
int delete_excluded=0;
int one_file_system=0;
-int remote_version=0;
+int protocol_version = PROTOCOL_VERSION;
int sparse_files=0;
int do_compression=0;
int am_root=0;
@@ -376,6 +376,7 @@ static struct poptOption long_options[] = {
{"files-from", 0, POPT_ARG_STRING, &files_from, 0, 0, 0 },
{"from0", '0', POPT_ARG_NONE, &eol_nulls, 0, 0, 0},
{"no-implied-dirs", 0, POPT_ARG_VAL, &implied_dirs, 0, 0, 0 },
+ {"protocol", 0, POPT_ARG_INT, &protocol_version, 0, 0, 0 },
#ifdef INET6
{0, '4', POPT_ARG_VAL, &default_af_hint, AF_INET, 0, 0 },
{0, '6', POPT_ARG_VAL, &default_af_hint, AF_INET6, 0, 0 },