summaryrefslogtreecommitdiff
path: root/src/index.c
diff options
context:
space:
mode:
authornulltoken <emeric.fermas@gmail.com>2012-11-10 21:10:49 +0100
committernulltoken <emeric.fermas@gmail.com>2012-11-10 21:10:49 +0100
commit95d73de15fd25b543e4162599d095ba45f726158 (patch)
tree413f517f05533dfea932e883ae84013efa3f9faf /src/index.c
parent33f95a9b32804958226f5af6a4773199f21fc5ea (diff)
downloadlibgit2-95d73de15fd25b543e4162599d095ba45f726158.tar.gz
index: prefer INDEX_OWNER usage
Diffstat (limited to 'src/index.c')
-rw-r--r--src/index.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/index.c b/src/index.c
index c68d0dc35..fed067cb0 100644
--- a/src/index.c
+++ b/src/index.c
@@ -471,7 +471,7 @@ int git_index_write_tree(git_oid *oid, git_index *index)
assert(oid && index);
- repo = (git_repository *)GIT_REFCOUNT_OWNER(index);
+ repo = INDEX_OWNER(index);
if (repo == NULL)
return create_index_error(-1, "Failed to write tree. "