verify_refname_available(): adjust constness in declaration

The two string_list arguments can be const. Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>

Michael Haggerty committed Apr 25, 2016 at 11:20 UTC 3a8af7be8f977cbf393dc77884a9ee6dfd611d95
2 files changed +4 -4
refs/files-backend.c
+2 -2
@@ -2299,8 +2299,8 @@ out:
2299 }
2300
2301 int verify_refname_available(const char *newname,
2302 - struct string_list *extras,
2303 - struct string_list *skip,
2302 + const struct string_list *extras,
2303 + const struct string_list *skip,
2304 struct strbuf *err)
2305 {
2306 struct ref_dir *packed_refs = get_packed_refs(&ref_cache);
refs/refs-internal.h
+2 -2
@@ -116,8 +116,8 @@ enum peel_status peel_object(const unsigned char *name, unsigned char *sha1);
116 * extras and skip must be sorted.
117 */
118 int verify_refname_available(const char *newname,
119 - struct string_list *extras,
120 - struct string_list *skip,
119 + const struct string_list *extras,
120 + const struct string_list *skip,
121 struct strbuf *err);
122
123 /*