diff options
author | tb <> | 2024-03-20 21:53:57 +0000 |
---|---|---|
committer | tb <> | 2024-03-20 21:53:57 +0000 |
commit | c368849035659f8522801ef0362333d1908bfa24 (patch) | |
tree | ed16a6ba9587b4e8dd511fefb894fc819c28caa9 /src | |
parent | 4c6730ef515d1c403c23e40ddb214a4b95bba2da (diff) | |
download | openbsd-c368849035659f8522801ef0362333d1908bfa24.tar.gz openbsd-c368849035659f8522801ef0362333d1908bfa24.tar.bz2 openbsd-c368849035659f8522801ef0362333d1908bfa24.zip |
tmod -> mod
requested by jsing
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libcrypto/conf/conf_mod.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/lib/libcrypto/conf/conf_mod.c b/src/lib/libcrypto/conf/conf_mod.c index 9a0c0bb4fd..4e4dd7d466 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.33 2024/03/20 21:51:23 tb Exp $ */ | 1 | /* $OpenBSD: conf_mod.c,v 1.34 2024/03/20 21:53:57 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 | */ |
@@ -217,7 +217,7 @@ module_run(const CONF *cnf, char *name, char *value, unsigned long flags) | |||
217 | static int | 217 | static int |
218 | module_add(const char *name, conf_init_func *ifunc, conf_finish_func *ffunc) | 218 | module_add(const char *name, conf_init_func *ifunc, conf_finish_func *ffunc) |
219 | { | 219 | { |
220 | CONF_MODULE *tmod = NULL; | 220 | CONF_MODULE *mod = NULL; |
221 | int ret = 0; | 221 | int ret = 0; |
222 | 222 | ||
223 | if (name == NULL) | 223 | if (name == NULL) |
@@ -228,21 +228,21 @@ module_add(const char *name, conf_init_func *ifunc, conf_finish_func *ffunc) | |||
228 | if (supported_modules == NULL) | 228 | if (supported_modules == NULL) |
229 | goto err; | 229 | goto err; |
230 | 230 | ||
231 | if ((tmod = calloc(1, sizeof(*tmod))) == NULL) | 231 | if ((mod = calloc(1, sizeof(*mod))) == NULL) |
232 | goto err; | 232 | goto err; |
233 | if ((tmod->name = strdup(name)) == NULL) | 233 | if ((mod->name = strdup(name)) == NULL) |
234 | goto err; | 234 | goto err; |
235 | tmod->init = ifunc; | 235 | mod->init = ifunc; |
236 | tmod->finish = ffunc; | 236 | mod->finish = ffunc; |
237 | 237 | ||
238 | if (!sk_CONF_MODULE_push(supported_modules, tmod)) | 238 | if (!sk_CONF_MODULE_push(supported_modules, mod)) |
239 | goto err; | 239 | goto err; |
240 | tmod = NULL; | 240 | mod = NULL; |
241 | 241 | ||
242 | ret = 1; | 242 | ret = 1; |
243 | 243 | ||
244 | err: | 244 | err: |
245 | module_free(tmod); | 245 | module_free(mod); |
246 | 246 | ||
247 | return ret; | 247 | return ret; |
248 | } | 248 | } |
@@ -255,7 +255,7 @@ module_add(const char *name, conf_init_func *ifunc, conf_finish_func *ffunc) | |||
255 | static CONF_MODULE * | 255 | static CONF_MODULE * |
256 | module_find(char *name) | 256 | module_find(char *name) |
257 | { | 257 | { |
258 | CONF_MODULE *tmod; | 258 | CONF_MODULE *mod; |
259 | int i, nchar; | 259 | int i, nchar; |
260 | char *p; | 260 | char *p; |
261 | 261 | ||
@@ -267,9 +267,9 @@ module_find(char *name) | |||
267 | nchar = strlen(name); | 267 | nchar = strlen(name); |
268 | 268 | ||
269 | for (i = 0; i < sk_CONF_MODULE_num(supported_modules); i++) { | 269 | for (i = 0; i < sk_CONF_MODULE_num(supported_modules); i++) { |
270 | tmod = sk_CONF_MODULE_value(supported_modules, i); | 270 | mod = sk_CONF_MODULE_value(supported_modules, i); |
271 | if (!strncmp(tmod->name, name, nchar)) | 271 | if (!strncmp(mod->name, name, nchar)) |
272 | return tmod; | 272 | return mod; |
273 | } | 273 | } |
274 | 274 | ||
275 | return NULL; | 275 | return NULL; |