httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jaillet...@apache.org
Subject svn commit: r1463754 - /httpd/httpd/trunk/modules/aaa/mod_authz_host.c
Date Tue, 02 Apr 2013 21:14:11 GMT
Author: jailletc36
Date: Tue Apr  2 21:14:10 2013
New Revision: 1463754

URL: http://svn.apache.org/r1463754
Log:
Use apr_psprintf(... "%pm"...) instead of explicit call to apr_strerror

Modified:
    httpd/httpd/trunk/modules/aaa/mod_authz_host.c

Modified: httpd/httpd/trunk/modules/aaa/mod_authz_host.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/aaa/mod_authz_host.c?rev=1463754&r1=1463753&r2=1463754&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/aaa/mod_authz_host.c (original)
+++ httpd/httpd/trunk/modules/aaa/mod_authz_host.c Tue Apr  2 21:14:10 2013
@@ -131,10 +131,8 @@ static const char *ip_parse_config(cmd_p
             return apr_psprintf(p, "ip address '%s' appears to be invalid", w);
         }
         else if (rv != APR_SUCCESS) {
-            char msgbuf[120];
-            apr_strerror(rv, msgbuf, sizeof msgbuf);
-            return apr_psprintf(p, "ip address '%s' appears to be invalid: %s",
-                                w, msgbuf);
+            return apr_psprintf(p, "ip address '%s' appears to be invalid: %pm",
+                                w, &rv);
         }
 
         if (parsed_subnets)



Mime
View raw message