get rid of const as these things really are not const
authorHerb Lewis <herb@samba.org>
Fri, 15 Aug 2003 02:25:41 +0000 (02:25 +0000)
committerHerb Lewis <herb@samba.org>
Fri, 15 Aug 2003 02:25:41 +0000 (02:25 +0000)
(This used to be commit 61bea183a229cc11f25c4a7cb5341faad9833d7b)

source3/client/client.c
source3/lib/util_str.c

index 67fadd11a8022edf70d810743dde1b6e2ddb75c0..c4407b8c317eab52e564466e136df159c45df090 100644 (file)
@@ -2186,7 +2186,7 @@ static int cmd_help(void)
 static int process_command_string(char *cmd)
 {
        pstring line;
-       const char *ptr;
+       char *ptr;
        int rc = 0;
 
        /* establish the connection if not already */
@@ -2460,7 +2460,7 @@ static void readline_callback(void)
 
 static void process_stdin(void)
 {
-       const char *ptr;
+       char *ptr;
 
        while (1) {
                fstring tok;
index 7569a39e6acf40b8911322886a70fec5f186546e..8d2b996785207526d143fbc051b679407e450af1 100644 (file)
@@ -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;