Permalink
Browse files

Use apr_psprintf(... "%pm"...) instead of explicit call to apr_strerror

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1463754 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
1 parent 92791fb commit 757c7b63ac96f50220784a0dfd947d1fcd4b1332 Christophe Jaillet committed Apr 2, 2013
Showing with 2 additions and 4 deletions.
  1. +2 −4 modules/aaa/mod_authz_host.c
@@ -131,10 +131,8 @@ static const char *ip_parse_config(cmd_parms *cmd,
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)

0 comments on commit 757c7b6

Please sign in to comment.