1
0
mirror of https://github.com/apache/httpd.git synced 2025-07-29 09:01:18 +03:00

fix Sun Studio type mismatch warnings

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1000589 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jeff Trawick
2010-09-23 19:21:43 +00:00
parent 279fb735bf
commit 9fa6b628a5

View File

@ -22,6 +22,12 @@
#include "ap_regex.h"
#include "httpd.h"
static apr_status_t rxplus_cleanup(void *preg)
{
ap_regfree((ap_regex_t *) preg);
return APR_SUCCESS;
}
AP_DECLARE(ap_rxplus_t*) ap_rxplus_compile(apr_pool_t *pool,
const char *pattern)
{
@ -61,7 +67,7 @@ AP_DECLARE(ap_rxplus_t*) ap_rxplus_compile(apr_pool_t *pool,
}
if (!endp) { /* there's no delim or flags */
if (ap_regcomp(&ret->rx, pattern, 0) == 0) {
apr_pool_cleanup_register(pool, &ret->rx, (void*) ap_regfree,
apr_pool_cleanup_register(pool, &ret->rx, rxplus_cleanup,
apr_pool_cleanup_null);
return ret;
}
@ -100,7 +106,7 @@ AP_DECLARE(ap_rxplus_t*) ap_rxplus_compile(apr_pool_t *pool,
}
}
if (ap_regcomp(&ret->rx, rxstr, ret->flags) == 0) {
apr_pool_cleanup_register(pool, &ret->rx, (void*) ap_regfree,
apr_pool_cleanup_register(pool, &ret->rx, rxplus_cleanup,
apr_pool_cleanup_null);
}
else {