diff options
author | Stefan Fritsch <sf@apache.org> | 2013-03-31 21:29:28 +0000 |
---|---|---|
committer | Stefan Fritsch <sf@apache.org> | 2013-03-31 21:29:28 +0000 |
commit | e00688ffd945257f24f92e5465f63ac7efa4a435 (patch) | |
tree | 12191b3bc6ec616e0394ec0ccf736ee96139250d /modules/session | |
parent | a68ec08398a2cba5d56af20ef1f1d1b5243f0be6 (diff) | |
download | httpd-e00688ffd945257f24f92e5465f63ac7efa4a435.tar.gz |
Use %pm available since apr 1.3 instead of an extra call to apr_strerror
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1463056 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/session')
-rw-r--r-- | modules/session/mod_session_crypto.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/session/mod_session_crypto.c b/modules/session/mod_session_crypto.c index f48ff0385b..03dbba61d6 100644 --- a/modules/session/mod_session_crypto.c +++ b/modules/session/mod_session_crypto.c @@ -556,9 +556,8 @@ static const char *set_crypto_passphrase_file(cmd_parms *cmd, void *config, filename = ap_server_root_relative(cmd->temp_pool, filename); rv = ap_pcfg_openfile(&file, cmd->temp_pool, filename); if (rv != APR_SUCCESS) { - return apr_psprintf(cmd->pool, "%s: Could not open file %s: %s", - cmd->cmd->name, filename, - apr_strerror(rv, buffer, sizeof(buffer))); + return apr_psprintf(cmd->pool, "%s: Could not open file %s: %pm", + cmd->cmd->name, filename, &rv); } while (!(ap_cfg_getline(buffer, sizeof(buffer), file))) { |