fetchhead: use size_t in tests
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
diff --git a/tests/online/fetchhead.c b/tests/online/fetchhead.c
index ae72dde..7e9ca7e 100644
--- a/tests/online/fetchhead.c
+++ b/tests/online/fetchhead.c
@@ -35,10 +35,10 @@ static void fetchhead_test_clone(void)
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;
- int refs;
+ size_t refs;
cl_git_pass(git_reference_list(&array, g_repo));
refs = array.count;
@@ -118,7 +118,7 @@ void test_online_fetchhead__no_merges(void)
void test_online_fetchhead__explicit_dst_refspec_creates_branch(void)
{
git_reference *ref;
- int refs;
+ size_t refs;
fetchhead_test_clone();
refs = count_references();
@@ -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)
{
git_reference *ref;
- int refs;
+ size_t refs;
fetchhead_test_clone();
refs = count_references();
@@ -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)
{
- int refs;
+ size_t refs;
fetchhead_test_clone();
refs = count_references();