diff options
| author | Russell Belfer <rb@github.com> | 2012-11-21 11:03:07 -0800 |
|---|---|---|
| committer | Ben Straub <bs@github.com> | 2012-11-27 13:18:29 -0800 |
| commit | 16248ee2d1d67bd386277bca67f04049afef875e (patch) | |
| tree | 2ae7078fbe8aa91dd0d094afc0a38c33a4cb6732 /src/index.h | |
| parent | f45d51ff8e04c6849413c13aedcf5abacc3c69bd (diff) | |
| download | libgit2-16248ee2d1d67bd386277bca67f04049afef875e.tar.gz | |
Fix up some missing consts in tree & index
This fixes some missed places where we can apply const-ness to
various public APIs.
There are still some index and tree APIs that cannot take const
pointers because we sort our `git_vectors` lazily and so we can't
reliably bsearch the index and tree content without applying a
`git_vector_sort()` first.
This also fixes some missed places where size_t can be used and
where const can be applied to a couple internal functions.
Diffstat (limited to 'src/index.h')
| -rw-r--r-- | src/index.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/index.h b/src/index.h index f0dcd64d5..05123b580 100644 --- a/src/index.h +++ b/src/index.h @@ -43,7 +43,7 @@ struct git_index { extern void git_index_entry__init_from_stat(git_index_entry *entry, struct stat *st); -extern unsigned int git_index__prefix_position(git_index *index, const char *path); +extern size_t git_index__prefix_position(git_index *index, const char *path); extern int git_index_entry__cmp(const void *a, const void *b); extern int git_index_entry__cmp_icase(const void *a, const void *b); |
