Commit e48dbdf9 by Edward Thomson

fetchhead: use size_t in tests

parent 3edbc441
...@@ -35,10 +35,10 @@ static void fetchhead_test_clone(void) ...@@ -35,10 +35,10 @@ static void fetchhead_test_clone(void)
cl_git_pass(git_clone(&g_repo, LIVE_REPO_URL, "./foo", &g_options)); cl_git_pass(git_clone(&g_repo, LIVE_REPO_URL, "./foo", &g_options));
} }
static int count_references(void) static size_t count_references(void)
{ {
git_strarray array; git_strarray array;
int refs; size_t refs;
cl_git_pass(git_reference_list(&array, g_repo)); cl_git_pass(git_reference_list(&array, g_repo));
refs = array.count; refs = array.count;
...@@ -118,7 +118,7 @@ void test_online_fetchhead__no_merges(void) ...@@ -118,7 +118,7 @@ void test_online_fetchhead__no_merges(void)
void test_online_fetchhead__explicit_dst_refspec_creates_branch(void) void test_online_fetchhead__explicit_dst_refspec_creates_branch(void)
{ {
git_reference *ref; git_reference *ref;
int refs; size_t refs;
fetchhead_test_clone(); fetchhead_test_clone();
refs = count_references(); refs = count_references();
...@@ -133,7 +133,7 @@ void test_online_fetchhead__explicit_dst_refspec_creates_branch(void) ...@@ -133,7 +133,7 @@ void test_online_fetchhead__explicit_dst_refspec_creates_branch(void)
void test_online_fetchhead__empty_dst_refspec_creates_no_branch(void) void test_online_fetchhead__empty_dst_refspec_creates_no_branch(void)
{ {
git_reference *ref; git_reference *ref;
int refs; size_t refs;
fetchhead_test_clone(); fetchhead_test_clone();
refs = count_references(); refs = count_references();
...@@ -146,7 +146,7 @@ void test_online_fetchhead__empty_dst_refspec_creates_no_branch(void) ...@@ -146,7 +146,7 @@ void test_online_fetchhead__empty_dst_refspec_creates_no_branch(void)
void test_online_fetchhead__colon_only_dst_refspec_creates_no_branch(void) void test_online_fetchhead__colon_only_dst_refspec_creates_no_branch(void)
{ {
int refs; size_t refs;
fetchhead_test_clone(); fetchhead_test_clone();
refs = count_references(); refs = count_references();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment