diff options
author | Ben Straub <bs@github.com> | 2012-11-21 06:57:46 +0400 |
---|---|---|
committer | Ben Straub <bs@github.com> | 2012-11-28 01:18:28 +0400 |
commit | f45d51ff8e04c6849413c13aedcf5abacc3c69bd (patch) | |
tree | dab9495e4954677f12475d8335cd2ea9e752f24e /tests-clar/index/filemodes.c | |
parent | d9023dbe0cb5d47e30d86149701b7be9006f7683 (diff) |
API updates for index.h
Diffstat (limited to 'tests-clar/index/filemodes.c')
-rw-r--r-- | tests-clar/index/filemodes.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests-clar/index/filemodes.c b/tests-clar/index/filemodes.c index 882d41748..a2d5df605 100644 --- a/tests-clar/index/filemodes.c +++ b/tests-clar/index/filemodes.c @@ -25,7 +25,7 @@ void test_index_filemodes__read(void) cl_assert_equal_i(6, git_index_entrycount(index)); for (i = 0; i < 6; ++i) { - git_index_entry *entry = git_index_get_byindex(index, i); + const git_index_entry *entry = git_index_get_byindex(index, i); cl_assert(entry != NULL); cl_assert(((entry->mode & 0100) ? 1 : 0) == expected[i]); } @@ -54,7 +54,7 @@ static void add_and_check_mode( git_index *index, const char *filename, unsigned int expect_mode) { int pos; - git_index_entry *entry; + const git_index_entry *entry; cl_git_pass(git_index_add_from_workdir(index, filename)); |