aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/conf/cnf_save.c
diff options
context:
space:
mode:
authorGeoff Thorpe <geoff@openssl.org>2001-01-09 00:24:38 +0000
committerGeoff Thorpe <geoff@openssl.org>2001-01-09 00:24:38 +0000
commit3c914840520161d9ca121d38973a79b050916a8a (patch)
tree54e55c6caf32e0ec88ac04b6a7765f7452fc7739 /crypto/conf/cnf_save.c
parent98d517c5dad7812f2df30f001356eb4cfa7fa6fc (diff)
downloadopenssl-3c914840520161d9ca121d38973a79b050916a8a.tar.gz
Move all the existing function pointer casts associated with LHASH's two
"doall" functions to using type-safe wrappers. As and where required, this can be replaced by redeclaring the underlying callbacks to use the underlying "void"-based prototypes (eg. if performance suffers from an extra level of function invocation).
Diffstat (limited to 'crypto/conf/cnf_save.c')
-rw-r--r--crypto/conf/cnf_save.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/crypto/conf/cnf_save.c b/crypto/conf/cnf_save.c
index efbb61373e..1439487526 100644
--- a/crypto/conf/cnf_save.c
+++ b/crypto/conf/cnf_save.c
@@ -59,7 +59,8 @@
#include <stdio.h>
#include <openssl/conf.h>
-void print_conf(CONF_VALUE *cv);
+static void print_conf(CONF_VALUE *cv);
+static IMPLEMENT_LHASH_DOALL_FN(print_conf, CONF_VALUE *);
main()
{
@@ -73,11 +74,11 @@ main()
exit(1);
}
- lh_doall(conf,(LHASH_DOALL_FN_TYPE)print_conf);
+ lh_doall(conf,LHASH_DOALL_FN(print_conf));
}
-void print_conf(CONF_VALUE *cv)
+static void print_conf(CONF_VALUE *cv)
{
int i;
CONF_VALUE *v;