From 8dfa224c1350a9cb3a2d35fae7721bebecfe7934 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 14 Mar 2011 21:16:23 +0100 Subject: s3: Change tldap_entry_attributes to the "array,count" convention Autobuild-User: Volker Lendecke Autobuild-Date: Mon Mar 14 22:02:35 CET 2011 on sn-devel-104 --- source3/lib/tldap.c | 5 +++-- source3/lib/tldap_util.c | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'source3/lib') diff --git a/source3/lib/tldap.c b/source3/lib/tldap.c index 1dd380f259..9523fdeab9 100644 --- a/source3/lib/tldap.c +++ b/source3/lib/tldap.c @@ -1958,8 +1958,9 @@ bool tldap_entry_dn(struct tldap_message *msg, char **dn) return true; } -bool tldap_entry_attributes(struct tldap_message *msg, int *num_attributes, - struct tldap_attribute **attributes) +bool tldap_entry_attributes(struct tldap_message *msg, + struct tldap_attribute **attributes, + int *num_attributes) { if ((msg->dn == NULL) && (!tldap_parse_search_entry(msg))) { return false; diff --git a/source3/lib/tldap_util.c b/source3/lib/tldap_util.c index 8f7ad883ef..52bacfd843 100644 --- a/source3/lib/tldap_util.c +++ b/source3/lib/tldap_util.c @@ -28,7 +28,7 @@ bool tldap_entry_values(struct tldap_message *msg, const char *attribute, struct tldap_attribute *attributes; int i, num_attributes; - if (!tldap_entry_attributes(msg, &num_attributes, &attributes)) { + if (!tldap_entry_attributes(msg, &attributes, &num_attributes)) { return false; } -- cgit