From 3c914840520161d9ca121d38973a79b050916a8a Mon Sep 17 00:00:00 2001 From: Geoff Thorpe Date: Tue, 9 Jan 2001 00:24:38 +0000 Subject: 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). --- ssl/ssl_sess.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ssl') diff --git a/ssl/ssl_sess.c b/ssl/ssl_sess.c index 830f1d9b0f..9364612e40 100644 --- a/ssl/ssl_sess.c +++ b/ssl/ssl_sess.c @@ -594,6 +594,8 @@ static void timeout(SSL_SESSION *s, TIMEOUT_PARAM *p) } } +static IMPLEMENT_LHASH_DOALL_ARG_FN(timeout, SSL_SESSION *, TIMEOUT_PARAM *) + void SSL_CTX_flush_sessions(SSL_CTX *s, long t) { unsigned long i; @@ -606,7 +608,7 @@ void SSL_CTX_flush_sessions(SSL_CTX *s, long t) CRYPTO_w_lock(CRYPTO_LOCK_SSL_CTX); i=tp.cache->down_load; tp.cache->down_load=0; - lh_doall_arg(tp.cache, (LHASH_DOALL_ARG_FN_TYPE)timeout, &tp); + lh_doall_arg(tp.cache, LHASH_DOALL_ARG_FN(timeout), &tp); tp.cache->down_load=i; CRYPTO_w_unlock(CRYPTO_LOCK_SSL_CTX); } -- cgit v1.2.3