From: Stefan Metzmacher Date: Tue, 16 Dec 2008 23:30:21 +0000 (+0100) Subject: nsswitch: fix compiler warnings in winbind_nss_linux.c X-Git-Tag: samba-4.0.0alpha6~467^2~17^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=99f7f737356a83348aeda1723d7e1b846a4693c1;p=thirdparty%2Fsamba.git nsswitch: fix compiler warnings in winbind_nss_linux.c metze --- diff --git a/nsswitch/winbind_nss_linux.c b/nsswitch/winbind_nss_linux.c index 2b51a8e15db..4a7943278ea 100644 --- a/nsswitch/winbind_nss_linux.c +++ b/nsswitch/winbind_nss_linux.c @@ -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) {