mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
dirmngr: Rename an enum value for clarity.
* dirmngr/ldapserver.h: Rename LDAPSERVER_OPT. -- Using _OPT is not good because it does not describe for what this configuration group is used. _SESSION immediately shows the purpose. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
6e1c99bc39
commit
eebd43d5b6
@ -47,7 +47,7 @@ ldap_server_t ldapserver_parse_one (char *line,
|
||||
struct ldapserver_iter
|
||||
{
|
||||
ctrl_t ctrl;
|
||||
enum { LDAPSERVER_SESSION, LDAPSERVER_OPT } group;
|
||||
enum { LDAPSERVER_SESSION, LDAPSERVER_GLOBAL } group;
|
||||
ldap_server_t server;
|
||||
};
|
||||
|
||||
@ -62,7 +62,7 @@ ldapserver_iter_next (struct ldapserver_iter *iter)
|
||||
{
|
||||
if (iter->group == LDAPSERVER_SESSION)
|
||||
{
|
||||
iter->group = LDAPSERVER_OPT;
|
||||
iter->group = LDAPSERVER_GLOBAL;
|
||||
iter->server = opt.ldapservers;
|
||||
}
|
||||
}
|
||||
@ -72,7 +72,7 @@ ldapserver_iter_next (struct ldapserver_iter *iter)
|
||||
static inline int
|
||||
ldapserver_iter_end_p (struct ldapserver_iter *iter)
|
||||
{
|
||||
return (iter->group == LDAPSERVER_OPT && iter->server == NULL);
|
||||
return (iter->group == LDAPSERVER_GLOBAL && iter->server == NULL);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user