From ed1c64464a4e3126eef5d74d2c14c19133fa9cd8 Mon Sep 17 00:00:00 2001 From: Edward Thomson Date: Tue, 28 Jul 2015 11:41:27 -0500 Subject: iterator: use an options struct instead of args --- src/submodule.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/submodule.c') diff --git a/src/submodule.c b/src/submodule.c index 991ebc8f3..7f52c3616 100644 --- a/src/submodule.c +++ b/src/submodule.c @@ -286,7 +286,7 @@ static int submodules_from_index(git_strmap *map, git_index *idx) git_iterator *i; const git_index_entry *entry; - if ((error = git_iterator_for_index(&i, idx, 0, NULL, NULL)) < 0) + if ((error = git_iterator_for_index(&i, idx, NULL)) < 0) return error; while (!(error = git_iterator_advance(&entry, i))) { @@ -322,7 +322,7 @@ static int submodules_from_head(git_strmap *map, git_tree *head) git_iterator *i; const git_index_entry *entry; - if ((error = git_iterator_for_tree(&i, head, 0, NULL, NULL)) < 0) + if ((error = git_iterator_for_tree(&i, head, NULL)) < 0) return error; while (!(error = git_iterator_advance(&entry, i))) { -- cgit v1.2.1