autoconf: fix --with(out)-sendfile-support option handling
[samba.git] / nsswitch / winbind_nss_linux.c
index 2b51a8e15dbf6de4c7d848b745c53ab189e173f3..4a7943278ea9f1b71730d0e8b75827956ddc3812 100644 (file)
@@ -105,8 +105,8 @@ static bool next_token_alloc(const char **ptr,
                                 char **pp_buff,
                                 const char *sep)
 {
-       char *s;
-       char *saved_s;
+       const char *s;
+       const char *saved_s;
        char *pbuf;
        bool quoted;
        size_t len=1;
@@ -116,7 +116,7 @@ static bool next_token_alloc(const char **ptr,
                return(false);
        }
 
-       s = (char *)*ptr;
+       s = *ptr;
 
        /* default to simple separators */
        if (!sep) {