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/mod_mellon2@143 a716ebb1-153a-0410-b759-cfb97c6a1b53
This commit is contained in:
olavmrk 2011-12-14 07:09:17 +00:00
parent 5a9e2ef0ce
commit 9b10315fa3
1 changed files with 3 additions and 1 deletions

View File

@ -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;
}