diff options
author | Nathan Kinder <nkinder@redhat.com> | 2012-08-06 15:46:50 -0700 |
---|---|---|
committer | Matthew Harmsen <mharmsen@redhat.com> | 2012-08-07 15:24:04 -0700 |
commit | 1a4982f584012a7efd2882dccb68ab93736e99e9 (patch) | |
tree | 5869798090e397a94d0239b58d25c42257a3dc77 /base/tps/src/modules/tps/AP_Context.cpp | |
parent | f8c945cbf2f0591feede41ce376d9b0fa13058e1 (diff) | |
download | pki-1a4982f584012a7efd2882dccb68ab93736e99e9.tar.gz pki-1a4982f584012a7efd2882dccb68ab93736e99e9.tar.xz pki-1a4982f584012a7efd2882dccb68ab93736e99e9.zip |
Port TPS to httpd 2.4
The API changed between httpd 2.2 and 2.4. We now need to pass
the module index to ap_log_error() when calling it. The remote_ip
member of the connection struct also was renamed to client_ip.
Diffstat (limited to 'base/tps/src/modules/tps/AP_Context.cpp')
-rw-r--r-- | base/tps/src/modules/tps/AP_Context.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/base/tps/src/modules/tps/AP_Context.cpp b/base/tps/src/modules/tps/AP_Context.cpp index cde314254..b7e0242fb 100644 --- a/base/tps/src/modules/tps/AP_Context.cpp +++ b/base/tps/src/modules/tps/AP_Context.cpp @@ -31,6 +31,8 @@ extern "C" #define MAX_LOG_MSG_SIZE 4096 +APLOG_USE_MODULE(tps); + AP_Context::AP_Context( server_rec *sv ) { @@ -53,7 +55,7 @@ void AP_Context::LogError( const char *func, int line, const char *fmt, ... ) PR_vsnprintf( buf, MAX_LOG_MSG_SIZE, fmt, argp ); va_end( argp ); - ap_log_error( func, line, APLOG_ERR, 0, m_sv, buf ); + ap_log_error( func, line, APLOG_MODULE_INDEX, APLOG_ERR, 0, m_sv, buf ); } @@ -66,13 +68,13 @@ void AP_Context::LogInfo( const char *func, int line, const char *fmt, ... ) PR_vsnprintf( buf, MAX_LOG_MSG_SIZE, fmt, argp ); va_end( argp ); - ap_log_error( func, line, APLOG_INFO, 0, m_sv, buf ); + ap_log_error( func, line, APLOG_MODULE_INDEX, APLOG_INFO, 0, m_sv, buf ); } void AP_Context::InitializationError( const char *func, int line ) { - ap_log_error( func, line, APLOG_INFO, 0, m_sv, + ap_log_error( func, line, APLOG_MODULE_INDEX, APLOG_INFO, 0, m_sv, "The nss module must be initialized " "prior to calling the tps module." ); } |