mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-27 03:20:22 +08:00
ITS#9576 Put the used table in ConfigArgs
This commit is contained in:
parent
3138c8d5db
commit
b4afe00942
@ -2121,7 +2121,8 @@ lload_config_find_keyword( ConfigTable *Conf, ConfigArgs *c )
|
||||
}
|
||||
c->line = c->tline;
|
||||
}
|
||||
return Conf + i;
|
||||
c->ca_desc = Conf + i;
|
||||
return c->ca_desc;
|
||||
}
|
||||
|
||||
int
|
||||
|
@ -4822,6 +4822,7 @@ config_find_table( ConfigOCs **colst, int nocs, AttributeDescription *ad,
|
||||
for (i=0; colst[j]->co_table[i].name; i++)
|
||||
if ( colst[j]->co_table[i].ad == ad ) {
|
||||
ca->table = colst[j]->co_type;
|
||||
ca->ca_desc = colst[j]->co_table+i;
|
||||
return &colst[j]->co_table[i];
|
||||
}
|
||||
}
|
||||
|
@ -143,7 +143,8 @@ ConfigTable *config_find_keyword(ConfigTable *Conf, ConfigArgs *c) {
|
||||
}
|
||||
c->line = c->tline;
|
||||
}
|
||||
return Conf+i;
|
||||
c->ca_desc = Conf+i;
|
||||
return c->ca_desc;
|
||||
}
|
||||
|
||||
int config_check_vals(ConfigTable *Conf, ConfigArgs *c, int check_only ) {
|
||||
|
@ -176,7 +176,8 @@ typedef struct config_args_s {
|
||||
#define SLAP_CONFIG_CLEANUP_MAX 16
|
||||
#endif
|
||||
ConfigDriver *cleanups[SLAP_CONFIG_CLEANUP_MAX];
|
||||
ConfigType table; /* which config table did we come from */
|
||||
ConfigType table; /* what kind of config table did we come from */
|
||||
ConfigTable *ca_desc;
|
||||
int num_cleanups;
|
||||
} ConfigArgs;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user