summaryrefslogtreecommitdiffstats
path: root/parse-options-cb.c
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2020-02-09 16:57:56 +0100
committerJunio C Hamano <gitster@pobox.com>2020-02-10 18:44:58 +0100
commitc84078573e9dc4b817d8270268583251eed7cff9 (patch)
tree944e4477906436375256ea23d5fcaea46d7d93db /parse-options-cb.c
parentparse-options: factor out parse_options_count() (diff)
downloadgit-c84078573e9dc4b817d8270268583251eed7cff9.tar.xz
git-c84078573e9dc4b817d8270268583251eed7cff9.zip
parse-options: const parse_options_concat() parameters
Document the fact that the function doesn't modify the two option arrays passed to it by adding the keyword const to each parameter. Signed-off-by: René Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'parse-options-cb.c')
-rw-r--r--parse-options-cb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/parse-options-cb.c b/parse-options-cb.c
index db6f666ef7..7d56681130 100644
--- a/parse-options-cb.c
+++ b/parse-options-cb.c
@@ -181,7 +181,8 @@ struct option *parse_options_dup(const struct option *o)
return opts;
}
-struct option *parse_options_concat(struct option *a, struct option *b)
+struct option *parse_options_concat(const struct option *a,
+ const struct option *b)
{
struct option *ret;
size_t a_len = parse_options_count(a);