summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2005-01-12 11:30:26 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:08:46 -0500
commit09c34de35a472acfe92ef489409646086a564326 (patch)
tree1b25f4022eba582d635da36ecbdd9c4e870ddbc0
parent7ea2317e972f5bea29b43a7b6ad37ac7591f86e8 (diff)
downloadsamba-09c34de35a472acfe92ef489409646086a564326.tar.gz
samba-09c34de35a472acfe92ef489409646086a564326.tar.bz2
samba-09c34de35a472acfe92ef489409646086a564326.zip
r4709: fix compiler warnings
metze (This used to be commit 7aa86445e3290021fe40c5c9425ecdbc2dda1618)
-rw-r--r--source4/ldap_server/ldap_simple_ldb.c18
1 files changed, 6 insertions, 12 deletions
diff --git a/source4/ldap_server/ldap_simple_ldb.c b/source4/ldap_server/ldap_simple_ldb.c
index 861917bfa1..e16d187162 100644
--- a/source4/ldap_server/ldap_simple_ldb.c
+++ b/source4/ldap_server/ldap_simple_ldb.c
@@ -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 @@ static NTSTATUS sldb_Search(struct ldapsrv_partition *partition, struct ldapsrv_
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 @@ static NTSTATUS sldb_Add(struct ldapsrv_partition *partition, struct ldapsrv_cal
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 @@ static NTSTATUS sldb_Del(struct ldapsrv_partition *partition, struct ldapsrv_cal
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 @@ static NTSTATUS sldb_Modify(struct ldapsrv_partition *partition, struct ldapsrv_
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 @@ static NTSTATUS sldb_Compare(struct ldapsrv_partition *partition, struct ldapsrv
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 @@ static NTSTATUS sldb_ModifyDN(struct ldapsrv_partition *partition, struct ldapsr
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;