svn commit: samba r13000 - in branches/SAMBA_4_0/source/lib: .

metze at samba.org metze at samba.org
Wed Jan 18 15:51:52 GMT 2006


Author: metze
Date: 2006-01-18 15:51:50 +0000 (Wed, 18 Jan 2006)
New Revision: 13000

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=13000

Log:
fix compiler warnings

metze
Modified:
   branches/SAMBA_4_0/source/lib/util_str.c


Changeset:
Modified: branches/SAMBA_4_0/source/lib/util_str.c
===================================================================
--- branches/SAMBA_4_0/source/lib/util_str.c	2006-01-18 15:46:00 UTC (rev 12999)
+++ branches/SAMBA_4_0/source/lib/util_str.c	2006-01-18 15:51:50 UTC (rev 13000)
@@ -439,7 +439,7 @@
 {
 	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 @@
 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 @@
  **/
 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



More information about the samba-cvs mailing list