summaryrefslogtreecommitdiff
path: root/options.c
diff options
context:
space:
mode:
authorWayne Davison <wayne@opencoder.net>2020-08-03 10:42:08 -0700
committerWayne Davison <wayne@opencoder.net>2020-08-03 10:46:31 -0700
commit47351c2b162fa8078d139be25b9296e156f2423f (patch)
treefd38f523154cd7bdcedd221d0b917d464c497782 /options.c
parent16b7670614daad3293047ac0568621e4a2f493f9 (diff)
downloadrsync-47351c2b162fa8078d139be25b9296e156f2423f.tar.gz
Use RSYNC_GITVER in more output
Diffstat (limited to 'options.c')
-rw-r--r--options.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/options.c b/options.c
index 0e9f3db6..dc3dcee9 100644
--- a/options.c
+++ b/options.c
@@ -720,6 +720,11 @@ static void print_info_flags(enum logcode f)
}
}
+const char *rsync_version(void)
+{
+ return RSYNC_GITVER;
+}
+
static void print_rsync_version(enum logcode f)
{
char tmpbuf[256], *subprotocol = "";
@@ -728,7 +733,7 @@ static void print_rsync_version(enum logcode f)
subprotocol = istring(".PR%d", SUBPROTOCOL_VERSION);
#endif
rprintf(f, "%s version %s protocol version %d%s\n",
- RSYNC_NAME, RSYNC_GITVER, PROTOCOL_VERSION, subprotocol);
+ RSYNC_NAME, rsync_version(), PROTOCOL_VERSION, subprotocol);
rprintf(f, "Copyright (C) 1996-" LATEST_YEAR " by Andrew Tridgell, Wayne Davison, and others.\n");
rprintf(f, "Web site: https://rsync.samba.org/\n");