util/util_strlist - add a call "const_str_list" for making "unconst" lists "const"
[sfrench/samba-autobuild/.git] / lib / util / util_strlist.c
index 71998b9a5c4110dd157401a8eefd67e18df6dd0e..6d1a695987160b2bcb744579362b54270600ff99 100644 (file)
@@ -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;
+}
+