static int process_command_string(char *cmd)
{
pstring line;
- const char *ptr;
+ char *ptr;
int rc = 0;
/* establish the connection if not already */
static void process_stdin(void)
{
- const char *ptr;
+ char *ptr;
while (1) {
fstring tok;
* 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;
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;