Commit 01538ce4935fe05e87ef376f1ef3650b11731ca7

Stefan Sperling 2020-03-18T16:11:30

add_symref modifies 'capa' so it cannot be const

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/libexec/got-fetch-pack/got-fetch-pack.c b/libexec/got-fetch-pack/got-fetch-pack.c
index a045084..93f8ca4 100644
--- a/libexec/got-fetch-pack/got-fetch-pack.c
+++ b/libexec/got-fetch-pack/got-fetch-pack.c
@@ -317,7 +317,7 @@ match_capability(char **my_capabilities, const char *capa,
 }
 
 static const struct got_error *
-add_symref(struct got_pathlist_head *symrefs, const char *capa)
+add_symref(struct got_pathlist_head *symrefs, char *capa)
 {
 	const struct got_error *err = NULL;
 	char *colon, *name = NULL, *target = NULL;