summaryrefslogtreecommitdiff
path: root/src/git_odb.h
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2008-10-31 10:42:32 -0700
committerShawn O. Pearce <spearce@spearce.org>2008-10-31 10:42:32 -0700
commit44181c23ea6c39d51a4b481dc59ecf2cc3967e76 (patch)
tree32581d0093429770d044a60eb0e9cc0462bedb13 /src/git_odb.h
parentc15648cbd059b92c177586ab1701a167222c7681 (diff)
downloadlibgit2-44181c23ea6c39d51a4b481dc59ecf2cc3967e76.tar.gz
Mark git_oid parameters const when they shouldn't be modified
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'src/git_odb.h')
-rw-r--r--src/git_odb.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/git_odb.h b/src/git_odb.h
index c72d81b5d..c994bb473 100644
--- a/src/git_odb.h
+++ b/src/git_odb.h
@@ -106,7 +106,7 @@ typedef struct {
* @return GIT_SUCCESS if the object was read;
* GIT_ENOTFOUND if the object is not in the database.
*/
-GIT_EXTERN(git_result) git_odb_sread(git_sobj *out, git_odb *db, git_oid *id);
+GIT_EXTERN(git_result) git_odb_sread(git_sobj *out, git_odb *db, const git_oid *id);
/**
* Read a small object from the database using only pack files.
@@ -116,7 +116,7 @@ GIT_EXTERN(git_result) git_odb_sread(git_sobj *out, git_odb *db, git_oid *id);
* @return GIT_SUCCESS if the object was read;
* GIT_ENOTFOUND if the object is not in the database.
*/
-GIT_EXTERN(git_result) git_odb__sread_packed(git_sobj *out, git_odb *db, git_oid *id);
+GIT_EXTERN(git_result) git_odb__sread_packed(git_sobj *out, git_odb *db, const git_oid *id);
/**
* Read a small object from the database using only loose object files.
@@ -126,7 +126,7 @@ GIT_EXTERN(git_result) git_odb__sread_packed(git_sobj *out, git_odb *db, git_oid
* @return GIT_SUCCESS if the object was read;
* GIT_ENOTFOUND if the object is not in the database.
*/
-GIT_EXTERN(git_result) git_odb__sread_loose(git_sobj *out, git_odb *db, git_oid *id);
+GIT_EXTERN(git_result) git_odb__sread_loose(git_sobj *out, git_odb *db, const git_oid *id);
/** @} */
GIT_END_DECL