summaryrefslogtreecommitdiff
path: root/source3/lib/util_str.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2011-05-05 14:22:11 -0700
committerJeremy Allison <jra@samba.org>2011-05-05 23:56:07 +0200
commit02af3075858814811bc30f03623eb6715f9b7a78 (patch)
tree10e10b4df41d6a8059ca136e76901f2a8af5bce4 /source3/lib/util_str.c
parente131c94ac1b06cc49b1c25717d3496dba8b0b3df (diff)
downloadsamba-02af3075858814811bc30f03623eb6715f9b7a78.tar.gz
samba-02af3075858814811bc30f03623eb6715f9b7a78.tar.bz2
samba-02af3075858814811bc30f03623eb6715f9b7a78.zip
More simple const fixes.
Diffstat (limited to 'source3/lib/util_str.c')
-rw-r--r--source3/lib/util_str.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/util_str.c b/source3/lib/util_str.c
index 583eea40d9..3dc73d9b8e 100644
--- a/source3/lib/util_str.c
+++ b/source3/lib/util_str.c
@@ -387,7 +387,7 @@ static bool string_init(char **dest,const char *src)
l = strlen(src);
if (l == 0) {
- *dest = CONST_DISCARD(char*, null_string);
+ *dest = discard_const_p(char, null_string);
} else {
(*dest) = SMB_STRDUP(src);
if ((*dest) == NULL) {
@@ -684,7 +684,7 @@ char *strnrchr_m(const char *s, char c, unsigned int n)
/* Too hard to try and get right. */
return NULL;
}
- ret = (char *)(s+strlen(s2));
+ ret = discard_const_p(char, (s+strlen(s2)));
TALLOC_FREE(ws);
TALLOC_FREE(s2);
return ret;