]> git.ipfire.org Git - thirdparty/git.git/commit - read-cache.c
read-cache: mark cache_entry pointers const
authorRené Scharfe <rene.scharfe@lsrfire.ath.cx>
Sun, 2 Jun 2013 15:46:52 +0000 (17:46 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sun, 2 Jun 2013 22:31:12 +0000 (15:31 -0700)
commit21a6b9fa4212277d925b789795e83ac96c2aaa01
treece71028921602d98ae03f1f02e2958bab5797a01
parent20d142b48c8f2f50662db095e193836d0a8f5ad1
read-cache: mark cache_entry pointers const

ie_match_stat and ie_modified only derefence their struct cache_entry
pointers for reading.  Add const to the parameter declaration here and
do the same for the static helper function used by them, as it's the
same there as well.  This allows callers to pass in const pointers.

Signed-off-by: René Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
cache.h
read-cache.c