svn commit: samba r4709 - in branches/SAMBA_4_0/source/ldap_server: .

metze at samba.org metze at samba.org
Wed Jan 12 11:30:27 GMT 2005


Author: metze
Date: 2005-01-12 11:30:26 +0000 (Wed, 12 Jan 2005)
New Revision: 4709

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

Log:
fix compiler warnings

metze

Modified:
   branches/SAMBA_4_0/source/ldap_server/ldap_simple_ldb.c


Changeset:
Modified: branches/SAMBA_4_0/source/ldap_server/ldap_simple_ldb.c
===================================================================
--- branches/SAMBA_4_0/source/ldap_server/ldap_simple_ldb.c	2005-01-12 11:16:04 UTC (rev 4708)
+++ branches/SAMBA_4_0/source/ldap_server/ldap_simple_ldb.c	2005-01-12 11:30:26 UTC (rev 4709)
@@ -24,12 +24,6 @@
 #include "ldap_parse.h"
 #include "lib/ldb/include/ldb.h"
 
-/* TODO: samdb_context is not a pulblic struct */
-struct samdb_context {
-	struct ldb_context *ldb;
-	struct samdb_context **static_ptr;
-};
-
 #define VALID_DN_SYNTAX(dn,i) do {\
 	if (!(dn)) {\
 		return NT_STATUS_NO_MEMORY;\
@@ -50,7 +44,7 @@
 	struct ldap_SearchResEntry *ent;
 	struct ldapsrv_reply *ent_r, *done_r;
 	int result = LDAP_SUCCESS;
-	struct samdb_context *samdb;
+	struct ldb_wrap *samdb;
 	struct ldb_message **res = NULL;
 	int i, j, y, count = 0;
 	enum ldb_scope scope = LDB_SCOPE_DEFAULT;
@@ -175,7 +169,7 @@
 	struct ldap_Result *add_result;
 	struct ldapsrv_reply *add_reply;
 	int ldb_ret;
-	struct samdb_context *samdb;
+	struct ldb_wrap *samdb;
 	struct ldb_message *msg = NULL;
 	int result = LDAP_SUCCESS;
 	const char *errstr = NULL;
@@ -274,7 +268,7 @@
 	struct ldap_Result *del_result;
 	struct ldapsrv_reply *del_reply;
 	int ldb_ret;
-	struct samdb_context *samdb;
+	struct ldb_wrap *samdb;
 	const char *errstr = NULL;
 	int result = LDAP_SUCCESS;
 
@@ -326,7 +320,7 @@
 	struct ldap_Result *modify_result;
 	struct ldapsrv_reply *modify_reply;
 	int ldb_ret;
-	struct samdb_context *samdb;
+	struct ldb_wrap *samdb;
 	struct ldb_message *msg = NULL;
 	int result = LDAP_SUCCESS;
 	const char *errstr = NULL;
@@ -436,7 +430,7 @@
 	struct ldap_Result *compare;
 	struct ldapsrv_reply *compare_r;
 	int result = LDAP_SUCCESS;
-	struct samdb_context *samdb;
+	struct ldb_wrap *samdb;
 	struct ldb_message **res = NULL;
 	const char *attrs[1];
 	const char *errstr = NULL;
@@ -504,7 +498,7 @@
 	struct ldap_Result *modifydn;
 	struct ldapsrv_reply *modifydn_r;
 	int ldb_ret;
-	struct samdb_context *samdb;
+	struct ldb_wrap *samdb;
 	const char *errstr = NULL;
 	int result = LDAP_SUCCESS;
 	const char *newdn = NULL;



More information about the samba-cvs mailing list