From 3a8af7be8f977cbf393dc77884a9ee6dfd611d95 Mon Sep 17 00:00:00 2001 From: Michael Haggerty Date: Mon, 25 Apr 2016 11:20:08 +0200 Subject: [PATCH] verify_refname_available(): adjust constness in declaration The two string_list arguments can be const. Signed-off-by: Michael Haggerty --- refs/files-backend.c | 4 ++-- refs/refs-internal.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/refs/files-backend.c b/refs/files-backend.c index 15ba456d68..1d1b72d57d 100644 --- a/refs/files-backend.c +++ b/refs/files-backend.c @@ -2299,8 +2299,8 @@ out: } int verify_refname_available(const char *newname, - struct string_list *extras, - struct string_list *skip, + const struct string_list *extras, + const struct string_list *skip, struct strbuf *err) { struct ref_dir *packed_refs = get_packed_refs(&ref_cache); diff --git a/refs/refs-internal.h b/refs/refs-internal.h index 85f4650ab8..9686e60942 100644 --- a/refs/refs-internal.h +++ b/refs/refs-internal.h @@ -116,8 +116,8 @@ enum peel_status peel_object(const unsigned char *name, unsigned char *sha1); * extras and skip must be sorted. */ int verify_refname_available(const char *newname, - struct string_list *extras, - struct string_list *skip, + const struct string_list *extras, + const struct string_list *skip, struct strbuf *err); /*