Browse Source

verify_refname_available(): adjust constness in declaration

The two string_list arguments can be const.

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
maint
Michael Haggerty 9 years ago
parent
commit
3a8af7be8f
  1. 4
      refs/files-backend.c
  2. 4
      refs/refs-internal.h

4
refs/files-backend.c

@ -2299,8 +2299,8 @@ out:
} }


int verify_refname_available(const char *newname, int verify_refname_available(const char *newname,
struct string_list *extras, const struct string_list *extras,
struct string_list *skip, const struct string_list *skip,
struct strbuf *err) struct strbuf *err)
{ {
struct ref_dir *packed_refs = get_packed_refs(&ref_cache); struct ref_dir *packed_refs = get_packed_refs(&ref_cache);

4
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. * extras and skip must be sorted.
*/ */
int verify_refname_available(const char *newname, int verify_refname_available(const char *newname,
struct string_list *extras, const struct string_list *extras,
struct string_list *skip, const struct string_list *skip,
struct strbuf *err); struct strbuf *err);


/* /*

Loading…
Cancel
Save