summaryrefslogtreecommitdiff
path: root/src/refs.c
diff options
context:
space:
mode:
authornulltoken <emeric.fermas@gmail.com>2011-08-09 12:07:47 +0200
committernulltoken <emeric.fermas@gmail.com>2011-08-09 22:34:54 +0200
commitd1f346931a7db577d24dca4f4ff5f81103bcc191 (patch)
tree02e3e4776bb4e7611876a338a10fbecc76ddaf35 /src/refs.c
parentf6867e639a963726f381739314ea7a9d181c5aae (diff)
downloadlibgit2-d1f346931a7db577d24dca4f4ff5f81103bcc191.tar.gz
util: Add git__strcmp_cb() wrapper
We don't want direct pointers to the CRT on Windows, we may get stdcall conflicts.
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