@matheusbsbs / matheus-bagliano / commits / 2aab167adf
Fork 0

http-push: use const for strings in signatures

Signed-off-by: Dan McGee <dpmcgee@gmail.com> Signed-off-by: Tay Ray Chuan <rctay89@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Dan McGee committed May 3, 2011 at 23:47 UTC 2aab167adfe920bf641a3ad77be1854a8eaefe46
1 file changed +4 -4
http-push.c
+4 -4
@@ -169,7 +169,7 @@ enum dav_header_flag {
169 DAV_HEADER_TIMEOUT = (1u << 2)
170 };
171
172 -static char *xml_entities(char *s)
172 +static char *xml_entities(const char *s)
173 {
174 struct strbuf buf = STRBUF_INIT;
175 while (*s) {
@@ -797,7 +797,7 @@ static void handle_new_lock_ctx(struct xml_ctx *ctx, int tag_closed)
797 }
798 }
799
800 -static void one_remote_ref(char *refname);
800 +static void one_remote_ref(const char *refname);
801
802 static void
803 xml_start_tag(void *userData, const char *name, const char **atts)
@@ -1471,7 +1471,7 @@ static int update_remote(unsigned char *sha1, struct remote_lock *lock)
1471
1472 static struct ref *remote_refs;
1473
1474 -static void one_remote_ref(char *refname)
1474 +static void one_remote_ref(const char *refname)
1475 {
1476 struct ref *ref;
1477 struct object *obj;
@@ -1660,7 +1660,7 @@ static int verify_merge_base(unsigned char *head_sha1, unsigned char *branch_sha
1660 return (merge_bases && !merge_bases->next && merge_bases->item == branch);
1661 }
1662
1663 -static int delete_remote_branch(char *pattern, int force)
1663 +static int delete_remote_branch(const char *pattern, int force)
1664 {
1665 struct ref *refs = remote_refs;
1666 struct ref *remote_ref = NULL;