summaryrefslogtreecommitdiff
path: root/source4/lib/util_str.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-01-18 15:51:50 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:51:16 -0500
commitb5c818a583417d52f551637809f2b8352e4ebe3b (patch)
tree8850a84ac99bdad377b94b3b85614491cb8dd110 /source4/lib/util_str.c
parent4326572af29bcf2a98aab7db6ca2b1489d3f6874 (diff)
downloadsamba-b5c818a583417d52f551637809f2b8352e4ebe3b.tar.gz
samba-b5c818a583417d52f551637809f2b8352e4ebe3b.tar.bz2
samba-b5c818a583417d52f551637809f2b8352e4ebe3b.zip
r13000: fix compiler warnings
metze (This used to be commit 880dd3538ef54af100a715acb72cc16b9947b617)
Diffstat (limited to 'source4/lib/util_str.c')
-rw-r--r--source4/lib/util_str.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/lib/util_str.c b/source4/lib/util_str.c
index 17c0924d68..eebddf65a5 100644
--- a/source4/lib/util_str.c
+++ b/source4/lib/util_str.c
@@ -439,7 +439,7 @@ DATA_BLOB strhex_to_data_blob(const char *strhex)
{
DATA_BLOB ret_blob = data_blob(NULL, strlen(strhex)/2+1);
- ret_blob.length = strhex_to_str(ret_blob.data,
+ ret_blob.length = strhex_to_str((char *)ret_blob.data,
strlen(strhex),
strhex);
@@ -951,7 +951,7 @@ void rfc1738_unescape(char *buf)
DATA_BLOB base64_decode_data_blob(TALLOC_CTX *mem_ctx, const char *s)
{
DATA_BLOB ret = data_blob_talloc(mem_ctx, s, strlen(s)+1);
- ret.length = ldb_base64_decode(ret.data);
+ ret.length = ldb_base64_decode((char *)ret.data);
return ret;
}
@@ -968,7 +968,7 @@ void base64_decode_inplace(char *s)
**/
char *base64_encode_data_blob(TALLOC_CTX *mem_ctx, DATA_BLOB data)
{
- return ldb_base64_encode(mem_ctx, data.data, data.length);
+ return ldb_base64_encode(mem_ctx, (const char *)data.data, data.length);
}
#ifdef VALGRIND