Typedefs don't have enum in front
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 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
diff --git a/include/git2/branch.h b/include/git2/branch.h
index 7f4945d..f4681dc 100644
--- a/include/git2/branch.h
+++ b/include/git2/branch.h
@@ -69,7 +69,7 @@ GIT_EXTERN(int) git_branch_create(
GIT_EXTERN(int) git_branch_delete(
git_repository *repo,
const char *branch_name,
- enum git_branch_type branch_type);
+ git_branch_type branch_type);
/**
* Fill a list with all the branches in the Repository
diff --git a/src/branch.c b/src/branch.c
index 5efb05b..6f3fa20 100644
--- a/src/branch.c
+++ b/src/branch.c
@@ -105,7 +105,7 @@ cleanup:
return error;
}
-int git_branch_delete(git_repository *repo, const char *branch_name, enum git_branch_type branch_type)
+int git_branch_delete(git_repository *repo, const char *branch_name, git_branch_type branch_type)
{
git_reference *branch = NULL;
git_reference *head = NULL;
diff --git a/src/fileops.c b/src/fileops.c
index 9da1bf7..bf95f76 100644
--- a/src/fileops.c
+++ b/src/fileops.c
@@ -298,7 +298,7 @@ int git_futils_mkdir_r(const char *path, const char *base, const mode_t mode)
static int _rmdir_recurs_foreach(void *opaque, git_buf *path)
{
- enum git_directory_removal_type removal_type = *(enum git_directory_removal_type *)opaque;
+ git_directory_removal_type removal_type = *(git_directory_removal_type *)opaque;
assert(removal_type == GIT_DIRREMOVAL_EMPTY_HIERARCHY
|| removal_type == GIT_DIRREMOVAL_FILES_AND_DIRS
@@ -336,7 +336,7 @@ static int _rmdir_recurs_foreach(void *opaque, git_buf *path)
return 0;
}
-int git_futils_rmdir_r(const char *path, enum git_directory_removal_type removal_type)
+int git_futils_rmdir_r(const char *path, git_directory_removal_type removal_type)
{
int error;
git_buf p = GIT_BUF_INIT;
diff --git a/src/fileops.h b/src/fileops.h
index 9cc2d16..be619d6 100644
--- a/src/fileops.h
+++ b/src/fileops.h
@@ -76,7 +76,7 @@ typedef enum {
*
* @return 0 on success; -1 on error.
*/
-extern int git_futils_rmdir_r(const char *path, enum git_directory_removal_type removal_type);
+extern int git_futils_rmdir_r(const char *path, git_directory_removal_type removal_type);
/**
* Create and open a temporary file with a `_git2_` suffix.