Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Kelley <phkelley@hotmail.com>2013-01-27 23:17:07 +0400
committerPhilip Kelley <phkelley@hotmail.com>2013-01-27 23:17:07 +0400
commit11d9f6b30438a141def883b0115f7f764c03e990 (patch)
treeabe54e8085c4e3a1c7a822ee256f81e0d58e6b42 /tests-clar/index/filemodes.c
parentaa3bf89df21c44f22fe70b4aac9109646fd06b48 (diff)
Vector improvements and their fallout
Diffstat (limited to 'tests-clar/index/filemodes.c')
-rw-r--r--tests-clar/index/filemodes.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests-clar/index/filemodes.c b/tests-clar/index/filemodes.c
index 1acd2e341..1bb44173c 100644
--- a/tests-clar/index/filemodes.c
+++ b/tests-clar/index/filemodes.c
@@ -53,13 +53,12 @@ static void replace_file_with_mode(
static void add_and_check_mode(
git_index *index, const char *filename, unsigned int expect_mode)
{
- int pos;
+ size_t pos;
const git_index_entry *entry;
cl_git_pass(git_index_add_bypath(index, filename));
- pos = git_index_find(index, filename);
- cl_assert(pos >= 0);
+ cl_assert(!git_index_find(&pos, index, filename));
entry = git_index_get_byindex(index, pos);
cl_assert(entry->mode == expect_mode);