diff options
Diffstat (limited to 'lib/util/util_strlist.c')
-rw-r--r-- | lib/util/util_strlist.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/util/util_strlist.c b/lib/util/util_strlist.c index 71998b9a5c..6d1a695987 100644 --- a/lib/util/util_strlist.c +++ b/lib/util/util_strlist.c @@ -486,3 +486,12 @@ _PUBLIC_ const char **str_list_copy_const(TALLOC_CTX *mem_ctx, ret[i] = NULL; return ret; } + +/** + * Needed for making an "unconst" list "const" + */ +_PUBLIC_ const char **const_str_list(char **list) +{ + return (const char **)list; +} + |