Commit 2a54c7f447acfc74368a766369a9923ecdf19b21

Russell Belfer 2013-09-04T16:24:36

_umask is function name on Windows

diff --git a/tests-clar/repo/init.c b/tests-clar/repo/init.c
index 4d93f3d..aeb35d3 100644
--- a/tests-clar/repo/init.c
+++ b/tests-clar/repo/init.c
@@ -10,16 +10,16 @@ enum repo_mode {
 };
 
 static git_repository *_repo = NULL;
-static mode_t _umask = 0;
+static mode_t g_umask = 0;
 
 void test_repo_init__initialize(void)
 {
 	_repo = NULL;
 
 	/* load umask if not already loaded */
-	if (!_umask) {
-		_umask = p_umask(022);
-		(void)p_umask(_umask);
+	if (!g_umask) {
+		g_umask = p_umask(022);
+		(void)p_umask(g_umask);
 	}
 }
 
@@ -388,7 +388,7 @@ static void assert_hooks_match(
 
 	expected_st.st_mode =
 		(expected_st.st_mode & ~0777) |
-		(((expected_st.st_mode & 0111) ? 0100777 : 0100666) & ~_umask);
+		(((expected_st.st_mode & 0111) ? 0100777 : 0100666) & ~g_umask);
 
 	if (!core_filemode) {
 		expected_st.st_mode = expected_st.st_mode & ~0111;