mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-28 17:46:09 +00:00
tests: use a size_t
This commit is contained in:
parent
60e15ecd55
commit
498d0801a1
@ -18,18 +18,16 @@ static void assert_at_end(git_iterator *i, bool verbose)
|
||||
|
||||
void expect_iterator_items(
|
||||
git_iterator *i,
|
||||
int expected_flat,
|
||||
size_t expected_flat,
|
||||
const char **expected_flat_paths,
|
||||
int expected_total,
|
||||
size_t expected_total,
|
||||
const char **expected_total_paths)
|
||||
{
|
||||
const git_index_entry *entry;
|
||||
int count, error;
|
||||
size_t count;
|
||||
int no_trees = !(git_iterator_flags(i) & GIT_ITERATOR_INCLUDE_TREES);
|
||||
bool v = false;
|
||||
|
||||
if (expected_flat < 0) { v = true; expected_flat = -expected_flat; }
|
||||
if (expected_total < 0) { v = true; expected_total = -expected_total; }
|
||||
int error;
|
||||
|
||||
if (v) fprintf(stderr, "== %s ==\n", no_trees ? "notrees" : "trees");
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
|
||||
extern void expect_iterator_items(
|
||||
git_iterator *i,
|
||||
int expected_flat,
|
||||
size_t expected_flat,
|
||||
const char **expected_flat_paths,
|
||||
int expected_total,
|
||||
size_t expected_total,
|
||||
const char **expected_total_paths);
|
||||
|
||||
extern void expect_advance_over(
|
||||
|
Loading…
Reference in New Issue
Block a user