1
0
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:
Werner Koch 2019-11-11 09:45:01 +01:00
parent 6e1c99bc39
commit eebd43d5b6
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B

View File

@ -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);
}