summaryrefslogtreecommitdiff
path: root/tests/object/cache.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2016-06-20 17:44:04 +0200
committerPatrick Steinhardt <ps@pks.im>2016-06-20 19:32:59 +0200
commitfaebc1c6eccacd9659d21f848a9e2be55de671c7 (patch)
tree2354b2895cc7be0110e0093813253408e8f6af35 /tests/object/cache.c
parent69c71f2917fede843789e783ab6fe0fcda68753a (diff)
downloadlibgit2-faebc1c6eccacd9659d21f848a9e2be55de671c7.tar.gz
threads: split up OS-dependent thread code
Diffstat (limited to 'tests/object/cache.c')
-rw-r--r--tests/object/cache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/object/cache.c b/tests/object/cache.c
index bdf12da7a..680f23630 100644
--- a/tests/object/cache.c
+++ b/tests/object/cache.c
@@ -220,7 +220,7 @@ void test_object_cache__threadmania(void)
fn = (th & 1) ? cache_parsed : cache_raw;
#ifdef GIT_THREADS
- cl_git_pass(git_thread_create(&t[th], NULL, fn, data));
+ cl_git_pass(git_thread_create(&t[th], fn, data));
#else
cl_assert(fn(data) == data);
git__free(data);
@@ -267,7 +267,7 @@ void test_object_cache__fast_thread_rush(void)
data[th] = th;
#ifdef GIT_THREADS
cl_git_pass(
- git_thread_create(&t[th], NULL, cache_quick, &data[th]));
+ git_thread_create(&t[th], cache_quick, &data[th]));
#else
cl_assert(cache_quick(&data[th]) == &data[th]);
#endif