git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
540759e
)
util: fixed compile time "discards qualifiers" warning
author
Kamen Mazdrashki
<kamen.mazdrashki@postpath.com>
Fri, 25 Sep 2009 20:40:04 +0000
(23:40 +0300)
committer
Matthias Dieter Wallnöfer
<mwallnoefer@yahoo.de>
Thu, 1 Oct 2009 21:12:58 +0000
(23:12 +0200)
lib/util/util.c
patch
|
blob
|
history
diff --git
a/lib/util/util.c
b/lib/util/util.c
index 2a809d3ccb021d077e99e0c8a08b475ba2eb6dee..a07f50ae3b681e42b5d882fbc1d43ce3082a4927 100644
(file)
--- 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;
+ c
onst c
har *s;
+ c
onst c
har *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) {