summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-02-10 22:12:14 +0100
committerVolker Lendecke <vl@samba.org>2011-02-10 22:34:01 +0100
commitb524e58f9a37e0e780c998d819fdbac7b3c34fed (patch)
treee19076b2f0790a048f24210d0e6c0d5d3074f2f7 /source3
parent4063bde3edd15b241f2b93bb5aedfef57ec4df91 (diff)
downloadsamba-b524e58f9a37e0e780c998d819fdbac7b3c34fed.tar.gz
samba-b524e58f9a37e0e780c998d819fdbac7b3c34fed.tar.bz2
samba-b524e58f9a37e0e780c998d819fdbac7b3c34fed.zip
s3: Align tldap_add and tldap_add_send
Diffstat (limited to 'source3')
-rw-r--r--source3/include/tldap.h2
-rw-r--r--source3/lib/tldap.c2
-rw-r--r--source3/passdb/pdb_ads.c6
3 files changed, 5 insertions, 5 deletions
diff --git a/source3/include/tldap.h b/source3/include/tldap.h
index cd50298569..d1cb57e50e 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);
diff --git a/source3/lib/tldap.c b/source3/lib/tldap.c
index f97dc7c11d..f9f9fe5e54 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)
{
diff --git a/source3/passdb/pdb_ads.c b/source3/passdb/pdb_ads.c
index f153c9e0ce..bf1aa79a52 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)));
@@ -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)));
@@ -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)));