diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2008-04-17 23:12:21 +0200 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2008-04-17 23:12:21 +0200 |
commit | 2e48b85903b04117f9314b9ed69f0ac2d4d78356 (patch) | |
tree | 3414b0f55788c52c3ed8da25977ddb632a3f0c4e /nslcd | |
parent | 15b3f8bc5a757d984e5510fdaec46196d8939a56 (diff) |
change dict_values_first() and dict_values_next() into dict_loop_first() and dict_loop_next() to have a looping mechanism over keys and values
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@675 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'nslcd')
-rw-r--r-- | nslcd/myldap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nslcd/myldap.c b/nslcd/myldap.c index 12df572..6547113 100644 --- a/nslcd/myldap.c +++ b/nslcd/myldap.c @@ -169,8 +169,8 @@ static void myldap_entry_free(MYLDAP_ENTRY *entry) if (entry->exploded_rdn!=NULL) ldap_value_free(entry->exploded_rdn); /* free all attribute values */ - dict_values_first(entry->attributevalues); - while ((values=(char **)dict_values_next(entry->attributevalues))!=NULL) + dict_loop_first(entry->attributevalues); + while (dict_loop_next(entry->attributevalues,NULL,(void *)&values)!=NULL) ldap_value_free(values); dict_free(entry->attributevalues); /* we don't need the result anymore, ditch it. */ |