summaryrefslogtreecommitdiff
path: root/src/submodule.c
diff options
context:
space:
mode:
authorjoshaber <joshaber@gmail.com>2015-12-08 11:34:00 -0500
committerjoshaber <joshaber@gmail.com>2015-12-08 11:34:00 -0500
commiteda726cfb5ea44659e471ba10aee21f16ce2e800 (patch)
tree4b6342ad0d91a87efe598fa1ad2d45c1c4fddb11 /src/submodule.c
parenta3dc4190e77ff794109c3ff2fbcb3fa87e5f7c48 (diff)
downloadlibgit2-eda726cfb5ea44659e471ba10aee21f16ce2e800.tar.gz
Use a typedef for the submodule_foreach callback.
This fits with the style for the rest of the project, but more importantly, makes life easier for bindings authors who auto-generate code.
Diffstat (limited to 'src/submodule.c')
-rw-r--r--src/submodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/submodule.c b/src/submodule.c
index 1148f8790..6ec4c53e1 100644
--- a/src/submodule.c
+++ b/src/submodule.c
@@ -495,7 +495,7 @@ cleanup:
int git_submodule_foreach(
git_repository *repo,
- int (*callback)(git_submodule *sm, const char *name, void *payload),
+ git_submodule_cb callback,
void *payload)
{
git_vector snapshot = GIT_VECTOR_INIT;