summaryrefslogtreecommitdiff
path: root/src/refs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/refs.c')
-rw-r--r--src/refs.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/refs.c b/src/refs.c
index beb98a780..2e5466886 100644
--- a/src/refs.c
+++ b/src/refs.c
@@ -503,7 +503,7 @@ static int packed_load(git_repository *repo)
ref_cache->packfile = git_hashtable_alloc(
default_table_size,
reftable_hash,
- (git_hash_keyeq_ptr)strcmp);
+ (git_hash_keyeq_ptr)(&git__strcmp_cb));
if (ref_cache->packfile == NULL) {
error = GIT_ENOMEM;
@@ -1609,7 +1609,7 @@ int git_repository__refcache_init(git_refcache *refs)
refs->loose_cache = git_hashtable_alloc(
default_table_size,
reftable_hash,
- (git_hash_keyeq_ptr)strcmp);
+ (git_hash_keyeq_ptr)(&git__strcmp_cb));
/* packfile loaded lazily */
refs->packfile = NULL;
@@ -1752,6 +1752,4 @@ int git_reference__normalize_name(char *buffer_out, size_t out_size, const char
int git_reference__normalize_name_oid(char *buffer_out, size_t out_size, const char *name)
{
return normalize_name(buffer_out, out_size, name, 1);
-}
-
-
+} \ No newline at end of file