diff options
Diffstat (limited to 'src/lib/version')
-rw-r--r-- | src/lib/version/git_revision.c | 6 | ||||
-rw-r--r-- | src/lib/version/version.c | 4 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/lib/version/git_revision.c b/src/lib/version/git_revision.c index e87620a20c..9ee49f0c37 100644 --- a/src/lib/version/git_revision.c +++ b/src/lib/version/git_revision.c @@ -23,6 +23,12 @@ const char tor_git_revision[] = #endif ""; +/** + * String appended to Tor bug messages describing the Tor version. + * + * It has the form "(on Tor 0.4.3.1-alpha)" or + * "(on Tor 0.4.3.1-alpha git-b994397f1af193f8)" + **/ const char tor_bug_suffix[] = " (on Tor " VERSION #ifndef COCCI #ifndef _MSC_VER diff --git a/src/lib/version/version.c b/src/lib/version/version.c index b2f25e97b5..b08d566e12 100644 --- a/src/lib/version/version.c +++ b/src/lib/version/version.c @@ -24,6 +24,10 @@ static const char the_short_tor_version[] = #endif ""; +/** + * Longest possible version length. We make this a constant so that we + * can statically allocate the_tor_version. + **/ #define MAX_VERSION_LEN 128 /** The version of this Tor process, possibly including git version */ |