diff options
author | Patrick Steinhardt <ps@pks.im> | 2017-01-25 14:16:35 +0100 |
---|---|---|
committer | Patrick Steinhardt <ps@pks.im> | 2017-02-17 11:41:06 +0100 |
commit | c37b069b9f324c3e68ca5ddfce9588aabe97f346 (patch) | |
tree | 52520853cee60379c1605299126c363ad5c7aca0 | |
parent | a853c5272359f7b5b1f0648cf16cefe7434840b2 (diff) | |
download | libgit2-c37b069b9f324c3e68ca5ddfce9588aabe97f346.tar.gz |
khash: avoid using `kh_clear` directly
-rw-r--r-- | src/cache.c | 2 | ||||
-rw-r--r-- | src/pack-objects.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/cache.c b/src/cache.c index 79885c41e..0309c3d8e 100644 --- a/src/cache.c +++ b/src/cache.c @@ -88,7 +88,7 @@ static void clear_cache(git_cache *cache) git_cached_obj_decref(evict); }); - kh_clear(oid, cache->map); + git_oidmap_clear(cache->map); git_atomic_ssize_add(&git_cache__current_storage, -cache->used_memory); cache->used_memory = 0; } diff --git a/src/pack-objects.c b/src/pack-objects.c index e2b24e8e5..e463820e4 100644 --- a/src/pack-objects.c +++ b/src/pack-objects.c @@ -197,7 +197,7 @@ static void rehash(git_packbuilder *pb) size_t i; int ret; - kh_clear(oid, pb->object_ix); + git_oidmap_clear(pb->object_ix); for (i = 0, po = pb->object_list; i < pb->nr_objects; i++, po++) { pos = kh_put(oid, pb->object_ix, &po->id, &ret); kh_value(pb->object_ix, pos) = po; |