[SCM] Samba Shared Repository - branch master updated

Volker Lendecke vlendec at samba.org
Thu Feb 10 15:21:01 MST 2011


The branch, master has been updated
       via  efa460e s3: Align the args in tldap_modify
       via  b524e58 s3: Align tldap_add and tldap_add_send
      from  4063bde s3-rpc_server: move services into individual directories.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit efa460e2912f66629df4d916f950ff9e31c6c208
Author: Volker Lendecke <vl at samba.org>
Date:   Thu Feb 10 22:21:19 2011 +0100

    s3: Align the args in tldap_modify
    
    Autobuild-User: Volker Lendecke <vlendec at samba.org>
    Autobuild-Date: Thu Feb 10 23:20:05 CET 2011 on sn-devel-104

commit b524e58f9a37e0e780c998d819fdbac7b3c34fed
Author: Volker Lendecke <vl at samba.org>
Date:   Thu Feb 10 22:12:14 2011 +0100

    s3: Align tldap_add and tldap_add_send

-----------------------------------------------------------------------

Summary of changes:
 source3/include/tldap.h  |    6 +++---
 source3/lib/tldap.c      |    8 ++++----
 source3/passdb/pdb_ads.c |   14 +++++++-------
 3 files changed, 14 insertions(+), 14 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/include/tldap.h b/source3/include/tldap.h
index cd50298..6bd086b 100644
--- a/source3/include/tldap.h
+++ b/source3/include/tldap.h
@@ -123,7 +123,7 @@ struct tevent_req *tldap_add_send(TALLOC_CTX *mem_ctx,
 				  int num_cctrls);
 int tldap_add_recv(struct tevent_req *req);
 int tldap_add(struct tldap_context *ld, const char *dn,
-	      int num_attributes, struct tldap_mod *attributes,
+	      struct tldap_mod *attributes, int num_attributes,
 	      struct tldap_control *sctrls, int num_sctrls,
 	      struct tldap_control *cctrls, int num_cctrls);
 
@@ -131,14 +131,14 @@ struct tevent_req *tldap_modify_send(TALLOC_CTX *mem_ctx,
 				     struct tevent_context *ev,
 				     struct tldap_context *ld,
 				     const char *dn,
-				     int num_mods, struct tldap_mod *mods,
+				     struct tldap_mod *mods, int num_mods,
 				     struct tldap_control *sctrls,
 				     int num_sctrls,
 				     struct tldap_control *cctrls,
 				     int num_cctrls);
 int tldap_modify_recv(struct tevent_req *req);
 int tldap_modify(struct tldap_context *ld, const char *dn,
-		 int num_mods, struct tldap_mod *mods,
+		 struct tldap_mod *mods, int num_mods,
 		 struct tldap_control *sctrls, int num_sctrls,
 		 struct tldap_control *cctrls, int num_cctrls);
 
diff --git a/source3/lib/tldap.c b/source3/lib/tldap.c
index f97dc7c..775d9ad 100644
--- a/source3/lib/tldap.c
+++ b/source3/lib/tldap.c
@@ -2121,7 +2121,7 @@ int tldap_add_recv(struct tevent_req *req)
 }
 
 int tldap_add(struct tldap_context *ld, const char *dn,
-	      int num_attributes, struct tldap_mod *attributes,
+	      struct tldap_mod *attributes, int num_attributes,
 	      struct tldap_control *sctrls, int num_sctrls,
 	      struct tldap_control *cctrls, int num_cctrls)
 {
@@ -2161,7 +2161,7 @@ struct tevent_req *tldap_modify_send(TALLOC_CTX *mem_ctx,
 				     struct tevent_context *ev,
 				     struct tldap_context *ld,
 				     const char *dn,
-				     int num_mods, struct tldap_mod *mods,
+				     struct tldap_mod *mods, int num_mods,
 				     struct tldap_control *sctrls,
 				     int num_sctrls,
 				     struct tldap_control *cctrls,
@@ -2221,7 +2221,7 @@ int tldap_modify_recv(struct tevent_req *req)
 }
 
 int tldap_modify(struct tldap_context *ld, const char *dn,
-		 int num_mods, struct tldap_mod *mods,
+		 struct tldap_mod *mods, int num_mods,
 		 struct tldap_control *sctrls, int num_sctrls,
 		 struct tldap_control *cctrls, int num_cctrls)
  {
@@ -2236,7 +2236,7 @@ int tldap_modify(struct tldap_context *ld, const char *dn,
 		goto fail;
 	}
 
-	req = tldap_modify_send(frame, ev, ld, dn, num_mods, mods,
+	req = tldap_modify_send(frame, ev, ld, dn, mods, num_mods,
 				sctrls, num_sctrls, cctrls, num_cctrls);
 	if (req == NULL) {
 		result = TLDAP_NO_MEMORY;
diff --git a/source3/passdb/pdb_ads.c b/source3/passdb/pdb_ads.c
index f153c9e..a1b8306 100644
--- a/source3/passdb/pdb_ads.c
+++ b/source3/passdb/pdb_ads.c
@@ -491,7 +491,7 @@ static NTSTATUS pdb_ads_create_user(struct pdb_methods *m,
 	}
 
 
-	rc = tldap_add(ld, dn, num_mods, mods, NULL, 0, NULL, 0);
+	rc = tldap_add(ld, dn, mods, num_mods, NULL, 0, NULL, 0);
 	if (rc != TLDAP_SUCCESS) {
 		DEBUG(10, ("ldap_add failed %s\n",
 			   tldap_errstr(talloc_tos(), ld, rc)));
@@ -593,7 +593,7 @@ static NTSTATUS pdb_ads_update_sam_account(struct pdb_methods *m,
 		return NT_STATUS_OK;
 	}
 
-	rc = tldap_modify(ld, priv->dn, num_mods, mods, NULL, 0,
+	rc = tldap_modify(ld, priv->dn, mods, num_mods, NULL, 0,
 			  NULL, 0);
 	TALLOC_FREE(mods);
 	if (rc != TLDAP_SUCCESS) {
@@ -779,7 +779,7 @@ static NTSTATUS pdb_ads_create_dom_group(struct pdb_methods *m,
 		return NT_STATUS_NO_MEMORY;
 	}
 
-	rc = tldap_add(ld, dn, num_mods, mods, NULL, 0, NULL, 0);
+	rc = tldap_add(ld, dn, mods, num_mods, NULL, 0, NULL, 0);
 	if (rc != TLDAP_SUCCESS) {
 		DEBUG(10, ("ldap_add failed %s\n",
 			   tldap_errstr(talloc_tos(), state->ld, rc)));
@@ -1089,7 +1089,7 @@ static NTSTATUS pdb_ads_mod_groupmem(struct pdb_methods *m,
 		return NT_STATUS_NO_MEMORY;
 	}
 
-	rc = tldap_modify(ld, groupdn, 1, mods, NULL, 0, NULL, 0);
+	rc = tldap_modify(ld, groupdn, mods, 1, NULL, 0, NULL, 0);
 	TALLOC_FREE(frame);
 	if (rc != TLDAP_SUCCESS) {
 		DEBUG(10, ("ldap_modify failed: %s\n",
@@ -1164,7 +1164,7 @@ static NTSTATUS pdb_ads_create_alias(struct pdb_methods *m,
 		return NT_STATUS_NO_MEMORY;
 	}
 
-	rc = tldap_add(ld, dn, num_mods, mods, NULL, 0, NULL, 0);
+	rc = tldap_add(ld, dn, mods, num_mods, NULL, 0, NULL, 0);
 	if (rc != TLDAP_SUCCESS) {
 		DEBUG(10, ("ldap_add failed %s\n",
 			   tldap_errstr(talloc_tos(), state->ld, rc)));
@@ -1325,7 +1325,7 @@ static NTSTATUS pdb_ads_set_aliasinfo(struct pdb_methods *m,
 		return NT_STATUS_OK;
 	}
 
-	rc = tldap_modify(ld, dn, num_mods, mods, NULL, 0, NULL, 0);
+	rc = tldap_modify(ld, dn, mods, num_mods, NULL, 0, NULL, 0);
 	TALLOC_FREE(msg);
 	if (rc != TLDAP_SUCCESS) {
 		DEBUG(10, ("ldap_modify failed: %s\n",
@@ -1421,7 +1421,7 @@ static NTSTATUS pdb_ads_mod_aliasmem(struct pdb_methods *m,
 		return NT_STATUS_NO_MEMORY;
 	}
 
-	rc = tldap_modify(ld, aliasdn, 1, mods, NULL, 0, NULL, 0);
+	rc = tldap_modify(ld, aliasdn, mods, 1, NULL, 0, NULL, 0);
 	TALLOC_FREE(frame);
 	if (rc != TLDAP_SUCCESS) {
 		DEBUG(10, ("ldap_modify failed: %s\n",


-- 
Samba Shared Repository


More information about the samba-cvs mailing list