Fix up "for_each_ref()" to be more usable, and use it in git-fsck-cache
[gitweb.git] / refs.h
diff --git a/refs.h b/refs.h
index 7565decb0f9ce53e55a402cc9c8a8655ffcafb0a..a79cb13cd9027aa451716556207d4619a881b2f7 100644 (file)
--- a/refs.h
+++ b/refs.h
@@ -5,7 +5,7 @@
  * Calls the specified function for each ref file until it returns nonzero,
  * and returns the value
  */
-extern int for_each_ref(int (*fn)(const char *path, unsigned char *sha1));
+extern int for_each_ref(int (*fn)(const char *path, const unsigned char *sha1));
 
 /** Reads the refs file specified into sha1 **/
 extern int get_ref_sha1(const char *ref, unsigned char *sha1);