diff options
author | Stefan Metzmacher <metze@samba.org> | 2006-10-09 08:00:18 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:20:51 -0500 |
commit | c403dd11fb33755809a23338ecac99676d766b88 (patch) | |
tree | d594f04f6a121fe060205a6b4f8ccaa4125efe80 /source4/lib/ldb/common/ldb_dn.c | |
parent | d6e1eb987204b83a71516addab6c3d863d09846d (diff) | |
download | samba-c403dd11fb33755809a23338ecac99676d766b88.tar.gz samba-c403dd11fb33755809a23338ecac99676d766b88.tar.bz2 samba-c403dd11fb33755809a23338ecac99676d766b88.zip |
r19188: merge from samba3:
fix compiler warnings
metze
(This used to be commit dc139d8715f58b27363266f1426da451907845eb)
Diffstat (limited to 'source4/lib/ldb/common/ldb_dn.c')
-rw-r--r-- | source4/lib/ldb/common/ldb_dn.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/lib/ldb/common/ldb_dn.c b/source4/lib/ldb/common/ldb_dn.c index e0ef29ccfd..f10e2812f1 100644 --- a/source4/lib/ldb/common/ldb_dn.c +++ b/source4/lib/ldb/common/ldb_dn.c @@ -112,7 +112,7 @@ static struct ldb_val ldb_dn_unescape_value(void *mem_ctx, const char *src) LDB_DN_NULL_FAILED(src); - dst = p = talloc_memdup(mem_ctx, src, strlen(src) + 1); + dst = p = (char *)talloc_memdup(mem_ctx, src, strlen(src) + 1); LDB_DN_NULL_FAILED(dst); end = &dst[strlen(dst)]; @@ -300,7 +300,8 @@ static struct ldb_dn_component ldb_dn_explode_component(void *mem_ctx, char *raw p[qe] = '\0'; p = p + qs + 1; dc.value.length = strlen(p); - dc.value.data = talloc_memdup(mem_ctx, p, dc.value.length + 1); + dc.value.data = (uint8_t *)talloc_memdup(mem_ctx, p, + dc.value.length + 1); break; default: /* mismatched quotes ot other error, bail out */ |