summaryrefslogtreecommitdiff
path: root/source3/lib/util_str.c
diff options
context:
space:
mode:
authorHerb Lewis <herb@samba.org>2003-08-15 02:25:41 +0000
committerHerb Lewis <herb@samba.org>2003-08-15 02:25:41 +0000
commit0fc41a8962e86f477891e26c784ded81af75794a (patch)
treed0aa1924cde07545241e8f6d066318e2d0147073 /source3/lib/util_str.c
parent7753ed9acf117851e53cb1c489ec475ad531fd47 (diff)
downloadsamba-0fc41a8962e86f477891e26c784ded81af75794a.tar.gz
samba-0fc41a8962e86f477891e26c784ded81af75794a.tar.bz2
samba-0fc41a8962e86f477891e26c784ded81af75794a.zip
get rid of const as these things really are not const
(This used to be commit 61bea183a229cc11f25c4a7cb5341faad9833d7b)
Diffstat (limited to 'source3/lib/util_str.c')
-rw-r--r--source3/lib/util_str.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source3/lib/util_str.c b/source3/lib/util_str.c
index 7569a39e6a..8d2b996785 100644
--- a/source3/lib/util_str.c
+++ b/source3/lib/util_str.c
@@ -35,9 +35,9 @@
* Based on a routine by GJC@VILLAGE.COM.
* Extensively modified by Andrew.Tridgell@anu.edu.au
**/
-BOOL next_token(const char **ptr,char *buff, const char *sep, size_t bufsize)
+BOOL next_token(char **ptr,char *buff, const char *sep, size_t bufsize)
{
- const char *s;
+ char *s;
char *pbuf;
BOOL quoted;
size_t len=1;
@@ -82,13 +82,13 @@ parameter so you can pass NULL. This is useful for user interface code
but beware the fact that it is not re-entrant!
**/
-static const char *last_ptr=NULL;
+static char *last_ptr=NULL;
-BOOL next_token_nr(const char **ptr,char *buff, const char *sep, size_t bufsize)
+BOOL next_token_nr(char **ptr,char *buff, const char *sep, size_t bufsize)
{
BOOL ret;
if (!ptr)
- ptr = (const char **)&last_ptr;
+ ptr = (char **)&last_ptr;
ret = next_token(ptr, buff, sep, bufsize);
last_ptr = *ptr;