Skip to content

Commit b8fff35

Browse files
author
Edward Thomson
committed
tests: use static scope for test data
1 parent f892ec2 commit b8fff35

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/libgit2/repo/extensions.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#include "sysdir.h"
44
#include <ctype.h>
55

6-
git_repository *repo;
6+
static git_repository *repo;
77

88
void test_repo_extensions__initialize(void)
99
{

tests/libgit2/repo/objectformat.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
#include "repository.h"
55
#include <ctype.h>
66

7-
git_repository *repo;
8-
git_config *config;
7+
static git_repository *repo;
8+
static git_config *config;
99

1010
void test_repo_objectformat__initialize(void)
1111
{

0 commit comments

Comments
 (0)