From 3f6c2ba352c56921ad90a288b27477c7e5f86c61 Mon Sep 17 00:00:00 2001 From: Joe Orton Date: Mon, 17 May 2004 18:57:39 +0000 Subject: [PATCH] * modules/ssl/ssl_engine_config.c (ssl_config_global_create): Fix gcc strict-aliasing warning. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@103688 13f79535-47bb-0310-9956-ffa450edef68 --- modules/ssl/ssl_engine_config.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/modules/ssl/ssl_engine_config.c b/modules/ssl/ssl_engine_config.c index 8f66eba4ea..0eb1b1f3f5 100644 --- a/modules/ssl/ssl_engine_config.c +++ b/modules/ssl/ssl_engine_config.c @@ -39,12 +39,11 @@ SSLModConfigRec *ssl_config_global_create(server_rec *s) { apr_pool_t *pool = s->process->pool; SSLModConfigRec *mc; + void *vmc; - apr_pool_userdata_get((void **)&mc, SSL_MOD_CONFIG_KEY, - pool); - - if (mc) { - return mc; /* reused for lifetime of the server */ + apr_pool_userdata_get(&vmc, SSL_MOD_CONFIG_KEY, pool); + if (vmc) { + return vmc; /* reused for lifetime of the server */ } /* -- 2.40.0