summaryrefslogtreecommitdiff
path: root/src/object.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/object.c')
-rw-r--r--src/object.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/object.c b/src/object.c
index dd84cb5d7..c53a3acae 100644
--- a/src/object.c
+++ b/src/object.c
@@ -283,7 +283,7 @@ void git_object_free(git_object *object)
}
}
-const git_oid *git_object_id(git_object *obj)
+const git_oid *git_object_id(const git_object *obj)
{
assert(obj);
@@ -293,13 +293,13 @@ const git_oid *git_object_id(git_object *obj)
return &obj->id;
}
-git_otype git_object_type(git_object *obj)
+git_otype git_object_type(const git_object *obj)
{
assert(obj);
return obj->source.raw.type;
}
-git_repository *git_object_owner(git_object *obj)
+git_repository *git_object_owner(const git_object *obj)
{
assert(obj);
return obj->repo;