summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorEdward Thomson <edward.thomson@vercel.com>2023-02-15 10:08:42 +0000
committerEdward Thomson <edward.thomson@vercel.com>2023-02-15 10:08:42 +0000
commitb8fff35ab32a384f7e224d1afd06ef4fe1863e1f (patch)
tree80608c173e5ed09e316d1cc0d14d567bc7193ccf /tests
parentf892ec2add4c180de4ab71fefe0f21d7cf9e09c1 (diff)
downloadlibgit2-b8fff35ab32a384f7e224d1afd06ef4fe1863e1f.tar.gz
tests: use static scope for test data
Diffstat (limited to 'tests')
-rw-r--r--tests/libgit2/repo/extensions.c2
-rw-r--r--tests/libgit2/repo/objectformat.c4
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)
{