diff options
author | Volker Lendecke <vl@samba.org> | 2011-02-12 17:00:30 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2011-02-13 12:11:53 +0100 |
commit | fe551d681586adde38d4a01230f494ce0dd87b2c (patch) | |
tree | 9b42e30148b309f854683506cdf00ec0e28e5aa1 /source3/lib | |
parent | 84abb428f640e4c48a7231ed78383b197ed715a9 (diff) | |
download | samba-fe551d681586adde38d4a01230f494ce0dd87b2c.tar.gz samba-fe551d681586adde38d4a01230f494ce0dd87b2c.tar.bz2 samba-fe551d681586adde38d4a01230f494ce0dd87b2c.zip |
s3: Convert tldap_entry_values args to "array, count"
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/tldap_util.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/lib/tldap_util.c b/source3/lib/tldap_util.c index e42188a2ab..b83a1b75f0 100644 --- a/source3/lib/tldap_util.c +++ b/source3/lib/tldap_util.c @@ -23,7 +23,7 @@ #include "../libcli/security/security.h" bool tldap_entry_values(struct tldap_message *msg, const char *attribute, - int *num_values, DATA_BLOB **values) + DATA_BLOB **values, int *num_values) { struct tldap_attribute *attributes; int i, num_attributes; @@ -54,7 +54,7 @@ bool tldap_get_single_valueblob(struct tldap_message *msg, if (attribute == NULL) { return NULL; } - if (!tldap_entry_values(msg, attribute, &num_values, &values)) { + if (!tldap_entry_values(msg, attribute, &values, &num_values)) { return NULL; } if (num_values != 1) { @@ -219,7 +219,7 @@ static bool tldap_make_mod_blob_int(struct tldap_message *existing, DATA_BLOB oldval = data_blob_null; if ((existing != NULL) - && tldap_entry_values(existing, attrib, &num_values, &values)) { + && tldap_entry_values(existing, attrib, &values, &num_values)) { if (num_values > 1) { /* can't change multivalue attributes atm */ @@ -547,7 +547,7 @@ bool tldap_entry_has_attrvalue(struct tldap_message *msg, int i, num_values; DATA_BLOB *values; - if (!tldap_entry_values(msg, attribute, &num_values, &values)) { + if (!tldap_entry_values(msg, attribute, &values, &num_values)) { return false; } for (i=0; i<num_values; i++) { |