summaryrefslogtreecommitdiff
path: root/tests/t12-repo.c
diff options
context:
space:
mode:
authorBrodie Rao <brodie@bitheap.org>2011-10-14 14:18:02 -0700
committerBrodie Rao <brodie@bitheap.org>2011-10-14 15:57:15 -0700
commit33127043b3ef8dd8dd695ba3613eaa104a80a56b (patch)
treef17a6d405a42594e7c4a596ccd4adf684e13b413 /tests/t12-repo.c
parent1776f5ab495a5748e28685da1f6da1c298cb0273 (diff)
downloadlibgit2-33127043b3ef8dd8dd695ba3613eaa104a80a56b.tar.gz
fileops/posix: replace usage of "int mode" with "mode_t mode"
Note: Functions exported from fileops take const mode_t, while the underlying POSIX wrappers take mode_t.
Diffstat (limited to 'tests/t12-repo.c')
-rw-r--r--tests/t12-repo.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/t12-repo.c b/tests/t12-repo.c
index de921f9ca..6884188a3 100644
--- a/tests/t12-repo.c
+++ b/tests/t12-repo.c
@@ -173,7 +173,7 @@ END_TEST
BEGIN_TEST(init2, "Initialize and open a bare repo with a relative path escaping out of the current working directory")
char path_repository[GIT_PATH_MAX];
char current_workdir[GIT_PATH_MAX];
- const int mode = 0755; /* or 0777 ? */
+ const mode_t mode = 0755; /* or 0777 ? */
git_repository* repo;
must_pass(p_getcwd(current_workdir, sizeof(current_workdir)));
@@ -232,7 +232,7 @@ BEGIN_TEST(open2, "Open a bare repository with a relative path escaping out of t
char current_workdir[GIT_PATH_MAX];
char path_repository[GIT_PATH_MAX];
- const int mode = 0755; /* or 0777 ? */
+ const mode_t mode = 0755; /* or 0777 ? */
git_repository* repo;
/* Setup the repository to open */
@@ -384,7 +384,7 @@ BEGIN_TEST(discover0, "test discover")
char repository_path[GIT_PATH_MAX];
char sub_repository_path[GIT_PATH_MAX];
char found_path[GIT_PATH_MAX];
- int mode = 0755;
+ mode_t mode = 0755;
git_futils_mkdir_r(DISCOVER_FOLDER, mode);
must_pass(append_ceiling_dir(ceiling_dirs, TEMP_REPO_FOLDER));