summaryrefslogtreecommitdiff
path: root/read-cache.c
diff options
context:
space:
mode:
authorBrandon Williams <bmwill@google.com>2017-01-10 20:06:10 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-01-11 21:35:13 (GMT)
commit875425080df13933baf484b35988d3a2dc04629e (patch)
treeba8ba5834a6e254b7614af4487a6ee694e7fb11d /read-cache.c
parentd7dffce1cebde29a0c4b309a79e4345450bf352a (diff)
downloadgit-875425080df13933baf484b35988d3a2dc04629e.zip
git-875425080df13933baf484b35988d3a2dc04629e.tar.gz
git-875425080df13933baf484b35988d3a2dc04629e.tar.bz2
index: improve constness for reading blob data
Improve constness of the index_state parameter to the 'read_blob_data_from_index' function. Signed-off-by: Brandon Williams <bmwill@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'read-cache.c')
-rw-r--r--read-cache.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/read-cache.c b/read-cache.c
index 2eca639..7a9a7de 100644
--- a/read-cache.c
+++ b/read-cache.c
@@ -2285,7 +2285,8 @@ int index_name_is_other(const struct index_state *istate, const char *name,
return 1;
}
-void *read_blob_data_from_index(struct index_state *istate, const char *path, unsigned long *size)
+void *read_blob_data_from_index(const struct index_state *istate,
+ const char *path, unsigned long *size)
{
int pos, len;
unsigned long sz;