From 154ab0b0472e1519b18936e8a14edb7ff689120f Mon Sep 17 00:00:00 2001 From: Kamen Mazdrashki Date: Fri, 25 Sep 2009 23:40:04 +0300 Subject: [PATCH] util: fixed compile time "discards qualifiers" warning --- lib/util/util.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/util/util.c b/lib/util/util.c index 2a809d3ccb0..a07f50ae3b6 100644 --- a/lib/util/util.c +++ b/lib/util/util.c @@ -804,8 +804,8 @@ static bool next_token_internal_talloc(TALLOC_CTX *ctx, const char *sep, bool ltrim) { - char *s; - char *saved_s; + const char *s; + const char *saved_s; char *pbuf; bool quoted; size_t len=1; @@ -815,7 +815,7 @@ static bool next_token_internal_talloc(TALLOC_CTX *ctx, return(false); } - s = (char *)*ptr; + s = *ptr; /* default to simple separators */ if (!sep) { -- 2.11.4.GIT