From 9eb7a6a432cd69c16be624dda9a864fbc37b8b63 Mon Sep 17 00:00:00 2001 From: olavmrk Date: Wed, 18 May 2011 12:45:23 +0000 Subject: Avoid using APR_ARRAY_IDX. APR_ARRAY_IDX is a relatively new macro in the APR package, so we should avoid using it. git-svn-id: https://modmellon.googlecode.com/svn/trunk@134 a716ebb1-153a-0410-b759-cfb97c6a1b53 --- auth_mellon_handler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'auth_mellon_handler.c') diff --git a/auth_mellon_handler.c b/auth_mellon_handler.c index 4f79d3a..985b123 100644 --- a/auth_mellon_handler.c +++ b/auth_mellon_handler.c @@ -229,7 +229,7 @@ static guint am_server_add_providers(am_dir_cfg_rec *cfg, request_rec *r) GList *loaded_idp = NULL; #endif /* HAVE_lasso_server_load_metadata */ - idp_metadata = &APR_ARRAY_IDX(cfg->idp_metadata, index, const am_metadata_t); + idp_metadata = &( ((const am_metadata_t*)cfg->idp_metadata->elts) [index] ); #ifdef HAVE_lasso_server_load_metadata error = lasso_server_load_metadata(cfg->server, -- cgit