summaryrefslogtreecommitdiff
path: root/tests/core/oidmap.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2017-01-25 15:31:12 +0100
committerPatrick Steinhardt <ps@pks.im>2017-02-17 11:41:06 +0100
commitf31cb45ad2ca46cc743dfadf5ac8b916cbe4ea9c (patch)
treeed98640b9181f3cfae95e63711ca7200c7e7be3d /tests/core/oidmap.c
parenta8cd560b10149208aabcfe515b2e1b6c5be6388f (diff)
downloadlibgit2-f31cb45ad2ca46cc743dfadf5ac8b916cbe4ea9c.tar.gz
khash: avoid using `kh_put` directly
Diffstat (limited to 'tests/core/oidmap.c')
-rw-r--r--tests/core/oidmap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/core/oidmap.c b/tests/core/oidmap.c
index 61d75e9d1..88db692fc 100644
--- a/tests/core/oidmap.c
+++ b/tests/core/oidmap.c
@@ -36,7 +36,7 @@ void test_core_oidmap__basic(void)
pos = git_oidmap_lookup_index(map, &items[i].oid);
cl_assert(!git_oidmap_valid_index(map, pos));
- pos = kh_put(oid, map, &items[i].oid, &ret);
+ pos = git_oidmap_put(map, &items[i].oid, &ret);
cl_assert(ret != 0);
git_oidmap_value_at(map, pos) = &items[i];
@@ -90,7 +90,7 @@ void test_core_oidmap__hash_collision(void)
pos = git_oidmap_lookup_index(map, &items[i].oid);
cl_assert(!git_oidmap_valid_index(map, pos));
- pos = kh_put(oid, map, &items[i].oid, &ret);
+ pos = git_oidmap_put(map, &items[i].oid, &ret);
cl_assert(ret != 0);
git_oidmap_value_at(map, pos) = &items[i];