summaryrefslogtreecommitdiff
path: root/include/git2
diff options
context:
space:
mode:
Diffstat (limited to 'include/git2')
-rw-r--r--include/git2/refs.h2
-rw-r--r--include/git2/strarray.h5
2 files changed, 3 insertions, 4 deletions
diff --git a/include/git2/refs.h b/include/git2/refs.h
index c92646115..af6c2f43b 100644
--- a/include/git2/refs.h
+++ b/include/git2/refs.h
@@ -381,7 +381,7 @@ GIT_EXTERN(int) git_reference_foreach_glob(
git_repository *repo,
const char *glob,
unsigned int list_flags,
- int (*callback)(const char *reference_name, void *payload),
+ git_reference_foreach_cb callback,
void *payload);
/**
diff --git a/include/git2/strarray.h b/include/git2/strarray.h
index 030567978..338d13873 100644
--- a/include/git2/strarray.h
+++ b/include/git2/strarray.h
@@ -19,11 +19,10 @@
GIT_BEGIN_DECL
/** Array of strings */
-typedef struct _git_strarray git_strarray;
-struct _git_strarray {
+typedef struct git_strarray {
char **strings;
size_t count;
-};
+} git_strarray;
/**
* Close a string array object