You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ja...@apache.org on 2013/04/02 23:14:11 UTC
svn commit: r1463754 - /httpd/httpd/trunk/modules/aaa/mod_authz_host.c
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)