]> git.proxmox.com Git - libgit2.git/commitdiff
Staticize file-local variables
authorBen Straub <bs@github.com>
Sat, 22 Feb 2014 17:25:41 +0000 (09:25 -0800)
committerBen Straub <bs@github.com>
Mon, 24 Feb 2014 13:32:05 +0000 (05:32 -0800)
tests/blame/buffer.c
tests/index/addall.c

index 912ee9846b316093d3286bf4f31c7040a7fcd344..340b1dcedec978472f27f8721295ac5fdc504ab8 100644 (file)
@@ -1,7 +1,7 @@
 #include "blame_helpers.h"
 
-git_repository *g_repo;
-git_blame *g_fileblame, *g_bufferblame;
+static git_repository *g_repo;
+static git_blame *g_fileblame, *g_bufferblame;
 
 void test_blame_buffer__initialize(void)
 {
index 452733710e2a4ecf13f48811bc416e81b462a6a1..a7e2583b235223be192d75d57c0dabff82fe8116 100644 (file)
@@ -3,7 +3,7 @@
 #include "posix.h"
 #include "fileops.h"
 
-git_repository *g_repo = NULL;
+static git_repository *g_repo = NULL;
 #define TEST_DIR "addall"
 
 void test_index_addall__initialize(void)