summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamen Mazdrashki <kamen.mazdrashki@postpath.com>2009-09-25 23:40:04 +0300
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2009-10-01 23:12:58 +0200
commit154ab0b0472e1519b18936e8a14edb7ff689120f (patch)
tree053cb8fccbee234d47e42986d54e81275182be06
parent540759ec4d0ea432ad0cd3eb10ed2f977f7b6d29 (diff)
downloadsamba-154ab0b0472e1519b18936e8a14edb7ff689120f.tar.gz
samba-154ab0b0472e1519b18936e8a14edb7ff689120f.tar.bz2
samba-154ab0b0472e1519b18936e8a14edb7ff689120f.zip
util: fixed compile time "discards qualifiers" warning
-rw-r--r--lib/util/util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/util/util.c b/lib/util/util.c
index 2a809d3ccb..a07f50ae3b 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) {