summaryrefslogtreecommitdiffstats
path: root/auth_mellon_config.c
diff options
context:
space:
mode:
authorolavmrk <olavmrk@a716ebb1-153a-0410-b759-cfb97c6a1b53>2011-12-14 07:09:17 +0000
committerolavmrk <olavmrk@a716ebb1-153a-0410-b759-cfb97c6a1b53>2011-12-14 07:09:17 +0000
commitcadafe18b286334ce6e0cad5628c90da6fc736f4 (patch)
treee5100364450888018c5daf1abebb03c3dee26fc2 /auth_mellon_config.c
parentc888ef73f74a8987a31573d2c9509d22243bafc8 (diff)
downloadmod_auth_mellon-cadafe18b286334ce6e0cad5628c90da6fc736f4.tar.gz
mod_auth_mellon-cadafe18b286334ce6e0cad5628c90da6fc736f4.tar.xz
mod_auth_mellon-cadafe18b286334ce6e0cad5628c90da6fc736f4.zip
Compatibility with older versions of the apr library.
The APR_ARRAY_PUSH() macro was recently added to apr. Instead of using it, just use apr_array_push(). Thanks to Benjamin Dauver for providing this patch! git-svn-id: https://modmellon.googlecode.com/svn/trunk@143 a716ebb1-153a-0410-b759-cfb97c6a1b53
Diffstat (limited to 'auth_mellon_config.c')
-rw-r--r--auth_mellon_config.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/auth_mellon_config.c b/auth_mellon_config.c
index a97b911..66a4032 100644
--- a/auth_mellon_config.c
+++ b/auth_mellon_config.c
@@ -773,11 +773,13 @@ static const char *am_set_authn_context_class_ref(cmd_parms *cmd,
{
am_dir_cfg_rec *d = (am_dir_cfg_rec *)struct_ptr;
apr_pool_t *p= cmd->pool;
+ char **context_class_ref_p;
if(strlen(arg) == 0) {
return NULL;
}
- APR_ARRAY_PUSH(d->authn_context_class_ref, char*) = apr_pstrdup(p, arg);
+ context_class_ref_p = apr_array_push(d->authn_context_class_ref);
+ *context_class_ref_p = apr_pstrdup(p, arg);
return NULL;
}