summaryrefslogtreecommitdiff
path: root/lib/util/util.h
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2009-09-24 15:52:58 -0700
committerJeremy Allison <jra@samba.org>2009-09-24 15:52:58 -0700
commitd1aa7d479697a8fcc5d8237271c473a1b831949b (patch)
tree15a56f6d487bea5c158124378c72586a1f23385f /lib/util/util.h
parent536c4dd2d69f9a35547c0ce77b47c4f0b03aa5ac (diff)
downloadsamba-d1aa7d479697a8fcc5d8237271c473a1b831949b.tar.gz
samba-d1aa7d479697a8fcc5d8237271c473a1b831949b.tar.bz2
samba-d1aa7d479697a8fcc5d8237271c473a1b831949b.zip
Remove the const from the str_list_XXX functions that
allocate both list and containing strings. This fixes problems that people have tried to cast away and are not needed. Jeremy.
Diffstat (limited to 'lib/util/util.h')
-rw-r--r--lib/util/util.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/util/util.h b/lib/util/util.h
index 385a3ae07a..c766e3dce7 100644
--- a/lib/util/util.h
+++ b/lib/util/util.h
@@ -407,12 +407,12 @@ _PUBLIC_ bool strequal(const char *s1, const char *s2);
/**
build an empty (only NULL terminated) list of strings (for expansion with str_list_add() etc)
*/
-_PUBLIC_ const char **str_list_make_empty(TALLOC_CTX *mem_ctx);
+_PUBLIC_ char **str_list_make_empty(TALLOC_CTX *mem_ctx);
/**
place the only element 'entry' into a new, NULL terminated string list
*/
-_PUBLIC_ const char **str_list_make_single(TALLOC_CTX *mem_ctx,
+_PUBLIC_ char **str_list_make_single(TALLOC_CTX *mem_ctx,
const char *entry);
/**
@@ -420,7 +420,7 @@ _PUBLIC_ const char **str_list_make_single(TALLOC_CTX *mem_ctx,
separator list. The separator list must contain characters less than
or equal to 0x2f for this to work correctly on multi-byte strings
*/
-_PUBLIC_ const char **str_list_make(TALLOC_CTX *mem_ctx, const char *string,
+_PUBLIC_ char **str_list_make(TALLOC_CTX *mem_ctx, const char *string,
const char *sep);
/**
@@ -428,7 +428,7 @@ _PUBLIC_ const char **str_list_make(TALLOC_CTX *mem_ctx, const char *string,
* Entries are seperated by spaces and can be enclosed by quotes.
* Does NOT support escaping
*/
-_PUBLIC_ const char **str_list_make_shell(TALLOC_CTX *mem_ctx, const char *string, const char *sep);
+_PUBLIC_ char **str_list_make_shell(TALLOC_CTX *mem_ctx, const char *string, const char *sep);
/**
* join a list back to one string
@@ -447,7 +447,7 @@ _PUBLIC_ size_t str_list_length(const char * const *list);
/**
copy a string list
*/
-_PUBLIC_ const char **str_list_copy(TALLOC_CTX *mem_ctx, const char **list);
+_PUBLIC_ char **str_list_copy(TALLOC_CTX *mem_ctx, const char **list);
/**
Return true if all the elements of the list match exactly.