lib/util: fix const warnings
[sfrench/samba-autobuild/.git] / lib / util / util_strlist.c
index e8d2a74221803d92fdbbd47c461db342e1dde97a..8397589d747282e3f0b3bd4ea37190aec883c2f0 100644 (file)
@@ -519,6 +519,6 @@ _PUBLIC_ const char **str_list_copy_const(TALLOC_CTX *mem_ctx,
  */
 _PUBLIC_ const char **const_str_list(char **list)
 {
-       return (const char **)list;
+       return discard_const_p(const char *, list);
 }