summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortb <>2024-03-20 22:08:22 +0000
committertb <>2024-03-20 22:08:22 +0000
commitf4c8048a8c0fac3898d6ad17827af3abc0f6bf35 (patch)
treeb0264708246aeb23cc58baf31e11125a93b29c0c /src
parentc368849035659f8522801ef0362333d1908bfa24 (diff)
downloadopenbsd-f4c8048a8c0fac3898d6ad17827af3abc0f6bf35.tar.gz
openbsd-f4c8048a8c0fac3898d6ad17827af3abc0f6bf35.tar.bz2
openbsd-f4c8048a8c0fac3898d6ad17827af3abc0f6bf35.zip
pmod -> mod in CONF_IMODULE
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.
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/conf/conf_mod.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/lib/libcrypto/conf/conf_mod.c b/src/lib/libcrypto/conf/conf_mod.c
index 4e4dd7d466..887d9c7341 100644
--- a/src/lib/libcrypto/conf/conf_mod.c
+++ b/src/lib/libcrypto/conf/conf_mod.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: conf_mod.c,v 1.34 2024/03/20 21:53:57 tb Exp $ */ 1/* $OpenBSD: conf_mod.c,v 1.35 2024/03/20 22:08:22 tb Exp $ */
2/* Written by Stephen Henson (steve@openssl.org) for the OpenSSL 2/* Written by Stephen Henson (steve@openssl.org) for the OpenSSL
3 * project 2001. 3 * project 2001.
4 */ 4 */
@@ -86,7 +86,7 @@ struct conf_module_st {
86 */ 86 */
87 87
88struct conf_imodule_st { 88struct conf_imodule_st {
89 CONF_MODULE *pmod; 89 CONF_MODULE *mod;
90 char *name; 90 char *name;
91 char *value; 91 char *value;
92 unsigned long flags; 92 unsigned long flags;
@@ -288,7 +288,7 @@ module_init(CONF_MODULE *pmod, char *name, char *value, const CONF *cnf)
288 if (!imod) 288 if (!imod)
289 goto err; 289 goto err;
290 290
291 imod->pmod = pmod; 291 imod->mod = pmod;
292 imod->name = name ? strdup(name) : NULL; 292 imod->name = name ? strdup(name) : NULL;
293 imod->value = value ? strdup(value) : NULL; 293 imod->value = value ? strdup(value) : NULL;
294 imod->usr_data = NULL; 294 imod->usr_data = NULL;
@@ -407,9 +407,9 @@ CONF_modules_finish(void)
407static void 407static void
408module_finish(CONF_IMODULE *imod) 408module_finish(CONF_IMODULE *imod)
409{ 409{
410 if (imod->pmod->finish) 410 if (imod->mod->finish)
411 imod->pmod->finish(imod); 411 imod->mod->finish(imod);
412 imod->pmod->links--; 412 imod->mod->links--;
413 413
414 imodule_free(imod); 414 imodule_free(imod);
415} 415}
@@ -458,7 +458,7 @@ CONF_imodule_set_usr_data(CONF_IMODULE *imod, void *usr_data)
458CONF_MODULE * 458CONF_MODULE *
459CONF_imodule_get_module(const CONF_IMODULE *imod) 459CONF_imodule_get_module(const CONF_IMODULE *imod)
460{ 460{
461 return imod->pmod; 461 return imod->mod;
462} 462}
463 463
464unsigned long 464unsigned long