From: Michael Haggerty Date: Wed, 1 Oct 2014 10:28:17 +0000 (+0200) Subject: prepare_index(): declare return value to be (const char *) X-Git-Tag: v2.2.0-rc0~53^2~25 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/35ff08be099b36d0be855040a296f985d25dfd0a?hp=35ff08be099b36d0be855040a296f985d25dfd0a prepare_index(): declare return value to be (const char *) Declare the return value to be const to make it clear that we aren't giving callers permission to write over the string that it points at. (The return value is the filename field of a struct lock_file, which can be used by a signal handler at any time and therefore shouldn't be tampered with.) Signed-off-by: Michael Haggerty Signed-off-by: Junio C Hamano ---