summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPierre-Olivier Latour <pol@mac.com>2015-04-03 18:59:11 -0700
committerPierre-Olivier Latour <pol@mac.com>2015-04-03 18:59:11 -0700
commit807566d55403ee03a9870ca0102541bfd714b4d4 (patch)
treeb4e0f693976d23a89a6c9276f980d80d26709cb6 /src
parentde355f234174df291c9c40378da70114c3ba6c5d (diff)
downloadlibgit2-807566d55403ee03a9870ca0102541bfd714b4d4.tar.gz
Entry argument passed to git_index_add_frombuffer() should be const
Diffstat (limited to 'src')
-rw-r--r--src/index.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/index.c b/src/index.c
index 9880e8fe4..dbcc37a58 100644
--- a/src/index.c
+++ b/src/index.c
@@ -1091,7 +1091,7 @@ static bool valid_filemode(const int filemode)
}
int git_index_add_frombuffer(
- git_index *index, git_index_entry *source_entry,
+ git_index *index, const git_index_entry *source_entry,
const void *buffer, size_t len)
{
git_index_entry *entry = NULL;