diff options
author | Edward Thomson <edward.thomson@vercel.com> | 2023-02-15 10:08:42 +0000 |
---|---|---|
committer | Edward Thomson <edward.thomson@vercel.com> | 2023-02-15 10:08:42 +0000 |
commit | b8fff35ab32a384f7e224d1afd06ef4fe1863e1f (patch) | |
tree | 80608c173e5ed09e316d1cc0d14d567bc7193ccf /tests | |
parent | f892ec2add4c180de4ab71fefe0f21d7cf9e09c1 (diff) | |
download | libgit2-b8fff35ab32a384f7e224d1afd06ef4fe1863e1f.tar.gz |
tests: use static scope for test data
Diffstat (limited to 'tests')
-rw-r--r-- | tests/libgit2/repo/extensions.c | 2 | ||||
-rw-r--r-- | tests/libgit2/repo/objectformat.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/libgit2/repo/extensions.c b/tests/libgit2/repo/extensions.c index e7772acd5..105cdae12 100644 --- a/tests/libgit2/repo/extensions.c +++ b/tests/libgit2/repo/extensions.c @@ -3,7 +3,7 @@ #include "sysdir.h" #include <ctype.h> -git_repository *repo; +static git_repository *repo; void test_repo_extensions__initialize(void) { diff --git a/tests/libgit2/repo/objectformat.c b/tests/libgit2/repo/objectformat.c index 3518115f4..d278e10c4 100644 --- a/tests/libgit2/repo/objectformat.c +++ b/tests/libgit2/repo/objectformat.c @@ -4,8 +4,8 @@ #include "repository.h" #include <ctype.h> -git_repository *repo; -git_config *config; +static git_repository *repo; +static git_config *config; void test_repo_objectformat__initialize(void) { |