nsswitch: fix compiler warnings in winbind_nss_linux.c
authorStefan Metzmacher <metze@samba.org>
Tue, 16 Dec 2008 23:30:21 +0000 (00:30 +0100)
committerStefan Metzmacher <metze@samba.org>
Tue, 16 Dec 2008 23:31:36 +0000 (00:31 +0100)
metze

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) {