Hungarian notation occasionally helps, but only if it is done consistently.
Steve and consistency... cf e.g the last few commits. Accordingly,
Hensonian Hungarian notation is a complete disaster. Start cleaning this
mess up.
-/* $OpenBSD: conf_mod.c,v 1.34 2024/03/20 21:53:57 tb Exp $ */
+/* $OpenBSD: conf_mod.c,v 1.35 2024/03/20 22:08:22 tb Exp $ */
/* Written by Stephen Henson (steve@openssl.org) for the OpenSSL
* project 2001.
*/
*/
struct conf_imodule_st {
- CONF_MODULE *pmod;
+ CONF_MODULE *mod;
char *name;
char *value;
unsigned long flags;
if (!imod)
goto err;
- imod->pmod = pmod;
+ imod->mod = pmod;
imod->name = name ? strdup(name) : NULL;
imod->value = value ? strdup(value) : NULL;
imod->usr_data = NULL;
static void
module_finish(CONF_IMODULE *imod)
{
- if (imod->pmod->finish)
- imod->pmod->finish(imod);
- imod->pmod->links--;
+ if (imod->mod->finish)
+ imod->mod->finish(imod);
+ imod->mod->links--;
imodule_free(imod);
}
CONF_MODULE *
CONF_imodule_get_module(const CONF_IMODULE *imod)
{
- return imod->pmod;
+ return imod->mod;
}
unsigned long