Commit 1a2b8725 by Carlos Martín Nieto

Typedefs don't have enum in front

parent 0a20eee9
...@@ -69,7 +69,7 @@ GIT_EXTERN(int) git_branch_create( ...@@ -69,7 +69,7 @@ GIT_EXTERN(int) git_branch_create(
GIT_EXTERN(int) git_branch_delete( GIT_EXTERN(int) git_branch_delete(
git_repository *repo, git_repository *repo,
const char *branch_name, 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 * Fill a list with all the branches in the Repository
......
...@@ -105,7 +105,7 @@ cleanup: ...@@ -105,7 +105,7 @@ cleanup:
return error; 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 *branch = NULL;
git_reference *head = NULL; git_reference *head = NULL;
......
...@@ -298,7 +298,7 @@ int git_futils_mkdir_r(const char *path, const char *base, const mode_t mode) ...@@ -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) 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 assert(removal_type == GIT_DIRREMOVAL_EMPTY_HIERARCHY
|| removal_type == GIT_DIRREMOVAL_FILES_AND_DIRS || removal_type == GIT_DIRREMOVAL_FILES_AND_DIRS
...@@ -336,7 +336,7 @@ static int _rmdir_recurs_foreach(void *opaque, git_buf *path) ...@@ -336,7 +336,7 @@ static int _rmdir_recurs_foreach(void *opaque, git_buf *path)
return 0; 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; int error;
git_buf p = GIT_BUF_INIT; git_buf p = GIT_BUF_INIT;
......
...@@ -76,7 +76,7 @@ typedef enum { ...@@ -76,7 +76,7 @@ typedef enum {
* *
* @return 0 on success; -1 on error. * @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. * Create and open a temporary file with a `_git2_` suffix.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment