aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/garray.c2
-rw-r--r--src/garray.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/garray.c b/src/garray.c
index ea9d554e45..8871a8637c 100644
--- a/src/garray.c
+++ b/src/garray.c
@@ -136,7 +136,7 @@ char_u *ga_concat_strings_sep(const garray_T *gap, const char *sep)
/// @param gap
///
/// @returns the concatenated strings
-char_u* ga_concat_strings(garray_T *gap)
+char_u* ga_concat_strings(const garray_T *gap)
{
return ga_concat_strings_sep(gap, ",");
}
diff --git a/src/garray.h b/src/garray.h
index 4f07d5523b..2c7bc2f375 100644
--- a/src/garray.h
+++ b/src/garray.h
@@ -22,7 +22,7 @@ void ga_init(garray_T *gap, int itemsize, int growsize);
void ga_grow(garray_T *gap, int n);
char_u *ga_concat_strings_sep(const garray_T *gap, const char *sep)
FUNC_ATTR_NONNULL_RET;
-char_u *ga_concat_strings(garray_T *gap) FUNC_ATTR_NONNULL_RET;
+char_u *ga_concat_strings(const garray_T *gap) FUNC_ATTR_NONNULL_RET;
void ga_remove_duplicate_strings(garray_T *gap);
void ga_concat(garray_T *gap, char_u *s);
void ga_append(garray_T *gap, char c);