Entry argument passed to git_index_add_frombuffer() should be const

This commit is contained in:
Pierre-Olivier Latour 2015-04-03 18:59:11 -07:00
parent de355f2341
commit 807566d554
2 changed files with 2 additions and 2 deletions

View File

@ -485,7 +485,7 @@ GIT_EXTERN(int) git_index_add_bypath(git_index *index, const char *path);
*/
GIT_EXTERN(int) git_index_add_frombuffer(
git_index *index,
git_index_entry *entry,
const git_index_entry *entry,
const void *buffer, size_t len);
/**

View File

@ -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;