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

metze at samba.org metze at samba.org
Fri Jul 8 05:27:47 GMT 2005


Author: metze
Date: 2005-07-08 05:27:47 +0000 (Fri, 08 Jul 2005)
New Revision: 8228

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

Log:
fix compiler warnings

metze
Modified:
   branches/SAMBA_4_0/source/lib/ldb/samba/ldif_handlers.c


Changeset:
Modified: branches/SAMBA_4_0/source/lib/ldb/samba/ldif_handlers.c
===================================================================
--- branches/SAMBA_4_0/source/lib/ldb/samba/ldif_handlers.c	2005-07-08 05:22:31 UTC (rev 8227)
+++ branches/SAMBA_4_0/source/lib/ldb/samba/ldif_handlers.c	2005-07-08 05:27:47 UTC (rev 8228)
@@ -66,12 +66,12 @@
 		talloc_free(sid);
 		return -1;
 	}
-	out->data = dom_sid_string(mem_ctx, sid);
+	out->data = (uint8_t *)dom_sid_string(mem_ctx, sid);
 	talloc_free(sid);
 	if (out->data == NULL) {
 		return -1;
 	}
-	out->length = strlen(out->data);
+	out->length = strlen((const char *)out->data);
 	return 0;
 }
 
@@ -80,7 +80,7 @@
 	/* see if the input if null-terninated */
 	if (v->data[v->length] != '\0') return False;
 	
-	if (strncmp("S-", v->data, 2) != 0) return False;
+	if (strncmp("S-", (const char *)v->data, 2) != 0) return False;
 	return True;
 }
 
@@ -92,7 +92,7 @@
 {
 	if (ldb_comparision_objectSid_isString(v1)) {
 		if (ldb_comparision_objectSid_isString(v1)) {
-			return strcmp(v1->data, v2->data);
+			return strcmp((const char *)v1->data, (const char *)v2->data);
 		} else {
 			struct ldb_val v;
 			int ret;
@@ -128,7 +128,7 @@
 	struct GUID guid;
 	NTSTATUS status;
 
-	status = GUID_from_string(in->data, &guid);
+	status = GUID_from_string((const char *)in->data, &guid);
 	if (!NT_STATUS_IS_OK(status)) {
 		return -1;
 	}
@@ -154,11 +154,11 @@
 	if (!NT_STATUS_IS_OK(status)) {
 		return -1;
 	}
-	out->data = GUID_string(mem_ctx, &guid);
+	out->data = (uint8_t *)GUID_string(mem_ctx, &guid);
 	if (out->data == NULL) {
 		return -1;
 	}
-	out->length = strlen(out->data);
+	out->length = strlen((const char *)out->data);
 	return 0;
 }
 
@@ -170,7 +170,7 @@
 	/* see if the input if null-terninated */
 	if (v->data[v->length] != '\0') return False;
 
-	status = GUID_from_string(v->data, &guid);
+	status = GUID_from_string((const char *)v->data, &guid);
 	if (!NT_STATUS_IS_OK(status)) {
 		return False;
 	}
@@ -186,7 +186,7 @@
 {
 	if (ldb_comparision_objectGUID_isString(v1)) {
 		if (ldb_comparision_objectGUID_isString(v2)) {
-			return strcmp(v1->data, v2->data);
+			return strcmp((const char *)v1->data, (const char *)v2->data);
 		} else {
 			struct ldb_val v;
 			int ret;



More information about the samba-cvs mailing list