Return-Path: Delivered-To: apmail-httpd-cvs-archive@www.apache.org Received: (qmail 94948 invoked from network); 23 Sep 2010 19:22:08 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 23 Sep 2010 19:22:08 -0000 Received: (qmail 85926 invoked by uid 500); 23 Sep 2010 19:22:08 -0000 Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 85865 invoked by uid 500); 23 Sep 2010 19:22:07 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 85858 invoked by uid 99); 23 Sep 2010 19:22:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Sep 2010 19:22:07 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Sep 2010 19:22:05 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 30BFE23888FD; Thu, 23 Sep 2010 19:21:44 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1000589 - /httpd/httpd/trunk/server/util_regex.c Date: Thu, 23 Sep 2010 19:21:44 -0000 To: cvs@httpd.apache.org From: trawick@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20100923192144.30BFE23888FD@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: trawick Date: Thu Sep 23 19:21:43 2010 New Revision: 1000589 URL: http://svn.apache.org/viewvc?rev=1000589&view=rev Log: fix Sun Studio type mismatch warnings Modified: httpd/httpd/trunk/server/util_regex.c Modified: httpd/httpd/trunk/server/util_regex.c URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/util_regex.c?rev=1000589&r1=1000588&r2=1000589&view=diff ============================================================================== --- httpd/httpd/trunk/server/util_regex.c (original) +++ httpd/httpd/trunk/server/util_regex.c Thu Sep 23 19:21:43 2010 @@ -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_compi } 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_compi } } 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 {