summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVicent Martí <tanoku@gmail.com>2012-05-18 00:42:24 +0200
committerVicent Martí <tanoku@gmail.com>2012-05-18 01:26:23 +0200
commit2e2e97858de18abd43f7e59fcc6151510c6d3272 (patch)
tree1a6d69f8bb3de8ce3aab66602cf15f8f44c72287 /src
parent4fbd1c007e6c72b32c0dd2a29036a5670f85120a (diff)
downloadlibgit2-2e2e97858de18abd43f7e59fcc6151510c6d3272.tar.gz
Properly tag all `enums` with a `_t`
Diffstat (limited to 'src')
-rw-r--r--src/branch.c2
-rw-r--r--src/refs.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/branch.c b/src/branch.c
index 6d5880cb2..9698bbf56 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, git_branch_type branch_type)
+int git_branch_delete(git_repository *repo, const char *branch_name, git_branch_t branch_type)
{
git_reference *branch = NULL;
git_reference *head = NULL;
diff --git a/src/refs.c b/src/refs.c
index 9ba09249c..1ef3e13a4 100644
--- a/src/refs.c
+++ b/src/refs.c
@@ -194,10 +194,10 @@ corrupt:
return -1;
}
-static git_rtype loose_guess_rtype(const git_buf *full_path)
+static git_ref_t loose_guess_rtype(const git_buf *full_path)
{
git_buf ref_file = GIT_BUF_INIT;
- git_rtype type;
+ git_ref_t type;
type = GIT_REF_INVALID;
@@ -1153,7 +1153,7 @@ int git_reference_lookup_resolved(
/**
* Getters
*/
-git_rtype git_reference_type(git_reference *ref)
+git_ref_t git_reference_type(git_reference *ref)
{
assert(ref);