diff options
author | Brandon Williams <bmwill@google.com> | 2017-01-10 12:06:10 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-01-11 13:35:13 -0800 |
commit | 875425080df13933baf484b35988d3a2dc04629e (patch) | |
tree | ba8ba5834a6e254b7614af4487a6ee694e7fb11d /read-cache.c | |
parent | d7dffce1cebde29a0c4b309a79e4345450bf352a (diff) | |
download | git-875425080df13933baf484b35988d3a2dc04629e.tar.gz git-875425080df13933baf484b35988d3a2dc04629e.tar.xz |
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.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/read-cache.c b/read-cache.c index 2eca639cc..7a9a7de91 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; |