diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-10-18 13:49:35 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-10-18 13:49:35 -0400 |
commit | 72b5e4a2db4282002fe50e11c2b8a79e108d30f8 (patch) | |
tree | fe3b853d65170b1d3c30df4a6d9553ae51c3fc64 /src/test/fuzz/fuzzing_common.c | |
parent | b9b5f9a1a5a683611789ffe4c49e41325102cabc (diff) | |
download | tor-72b5e4a2db4282002fe50e11c2b8a79e108d30f8.tar.gz tor-72b5e4a2db4282002fe50e11c2b8a79e108d30f8.zip |
Move tor_git_revision into a new module.
At first, we put the tor_git_revision constant in tor_main.c, so
that we wouldn't have to recompile config.o every time the git
revision changed. But putting it there had unintended side effect
of forcing every program that wanted to link libor.a (including
test, test-slow, the fuzzers, the benchmarks, etc) to declare their
own tor_git_revision instance.
That's not very nice, especially since we want to start supporting
others who want to link against Tor (see 23846).
So, create a new git_revision.c file that only contains this
constant, and remove the duplicated boilerplate from everywhere
else.
Part of implementing ticket 23845.
Diffstat (limited to 'src/test/fuzz/fuzzing_common.c')
-rw-r--r-- | src/test/fuzz/fuzzing_common.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/test/fuzz/fuzzing_common.c b/src/test/fuzz/fuzzing_common.c index 7aee92df63..cd88ce560f 100644 --- a/src/test/fuzz/fuzzing_common.c +++ b/src/test/fuzz/fuzzing_common.c @@ -9,9 +9,6 @@ #include "crypto.h" #include "crypto_ed25519.h" -extern const char tor_git_revision[]; -const char tor_git_revision[] = ""; - static or_options_t *mock_options = NULL; static const or_options_t * mock_get_options(void) |