Code

builtin-checkout: use warning() instead of fprintf(stderr, "warning: ")
[git.git] / cache.h
diff --git a/cache.h b/cache.h
index bd4c390d577f0ad1175afb868a0e4ef7a02006d1..39789ee94a2f2e7dd1600115f4033ccf0e52c07b 100644 (file)
--- a/cache.h
+++ b/cache.h
@@ -805,7 +805,7 @@ struct ref {
 #define REF_HEADS      (1u << 1)
 #define REF_TAGS       (1u << 2)
 
-extern struct ref *find_ref_by_name(struct ref *list, const char *name);
+extern struct ref *find_ref_by_name(const struct ref *list, const char *name);
 
 #define CONNECT_VERBOSE       (1u << 0)
 extern struct child_process *git_connect(int fd[2], const char *url, const char *prog, int flags);