#define S_LIST_ABS 16 /* List Allocation Block Size */
-const char **str_list_make_v3(TALLOC_CTX *mem_ctx, const char *string,
+char **str_list_make_v3(TALLOC_CTX *mem_ctx, const char *string,
const char *sep)
{
- const char **list;
+ char **list;
const char *str;
char *s, *tok;
int num, lsize;
if (!string || !*string)
return NULL;
- list = TALLOC_ARRAY(mem_ctx, const char *, S_LIST_ABS+1);
+ list = TALLOC_ARRAY(mem_ctx, char *, S_LIST_ABS+1);
if (list == NULL) {
return NULL;
}
while (next_token_talloc(list, &str, &tok, sep)) {
if (num == lsize) {
- const char **tmp;
+ char **tmp;
lsize += S_LIST_ABS;
- tmp = TALLOC_REALLOC_ARRAY(mem_ctx, list, const char *,
+ tmp = TALLOC_REALLOC_ARRAY(mem_ctx, list, char *,
lsize + 1);
if (tmp == NULL) {
DEBUG(0,("str_list_make: "
list = tmp;
memset (&list[num], 0,
- ((sizeof(const char**)) * (S_LIST_ABS +1)));
+ ((sizeof(char**)) * (S_LIST_ABS +1)));
}
list[num] = tok;