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/mod_tps.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/mod_tps.cpp')
-rw-r--r-- | base/tps/src/modules/tps/mod_tps.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/base/tps/src/modules/tps/mod_tps.cpp b/base/tps/src/modules/tps/mod_tps.cpp index dc6cc95f9..7f3d29ca4 100644 --- a/base/tps/src/modules/tps/mod_tps.cpp +++ b/base/tps/src/modules/tps/mod_tps.cpp @@ -122,6 +122,7 @@ typedef struct { */ #define MOD_TPS_CONFIG_KEY tps_module +APLOG_USE_MODULE(tps); static const char MOD_TPS_CONFIG_KEY_NAME[] = "tps_module"; @@ -315,7 +316,7 @@ mod_tps_initialize( apr_pool_t *p, } else { /* Log information regarding this failure. */ ap_log_error( "mod_tps_initialize", - __LINE__, APLOG_ERR, 0, sv, + __LINE__, APLOG_MODULE_INDEX, APLOG_ERR, 0, sv, "The tps module was installed incorrectly since the " "parameter named '%s' is missing from the Apache " "Configuration file!", @@ -337,7 +338,7 @@ mod_tps_initialize( apr_pool_t *p, if( status != RA_INITIALIZATION_SUCCESS ) { /* Log information regarding this failure. */ ap_log_error( "mod_tps_initialize", - __LINE__, APLOG_ERR, 0, sv, + __LINE__, APLOG_MODULE_INDEX, APLOG_ERR, 0, sv, "The tps module was installed incorrectly " "since the file named '%s' does not exist!", cfg_path_file ); @@ -368,7 +369,7 @@ mod_tps_initialize( apr_pool_t *p, if (status != RA_INITIALIZATION_SUCCESS ) { ap_log_error( "mod_tps_initialize", - __LINE__, APLOG_ERR, 0, sv, + __LINE__, APLOG_MODULE_INDEX, APLOG_ERR, 0, sv, "The tps module failed to do the initializeInChild tasks. "); printf( "\nUnable to start Apache:\n" " The tps module failed to do the initializeInChild tasks. "); @@ -636,7 +637,7 @@ static void mod_tps_init_child(apr_pool_t *p, server_rec *sv) if (status != RA_INITIALIZATION_SUCCESS) { /* Need to shut down, the child was not initialized properly. */ ap_log_error( "mod_tps_init_child", - __LINE__, APLOG_ERR, 0, sv, + __LINE__, APLOG_MODULE_INDEX, APLOG_ERR, 0, sv, "The tps module failed to do the initializeInChild tasks. "); printf( "\nUnable to start Apache:\n" " The tps module failed to do the initializeInChild tasks. "); |