Skip to content

Commit e472cac

Browse files
committed
change the preprocessor define ap_accept_mutex_type to upper case
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@907723 13f79535-47bb-0310-9956-ffa450edef68
1 parent bab05ec commit e472cac

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

include/mpm_common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ AP_DECLARE_HOOK(const char *,mpm_get_name,(void))
330330
/* mutex type string for accept mutex, if any; MPMs should use the
331331
* same mutex type for ease of configuration
332332
*/
333-
#define ap_accept_mutex_type "mpm-accept"
333+
#define AP_ACCEPT_MUTEX_TYPE "mpm-accept"
334334

335335
#ifdef __cplusplus
336336
}

server/mpm/prefork/prefork.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -915,7 +915,7 @@ static int prefork_run(apr_pool_t *_pconf, apr_pool_t *plog, server_rec *s)
915915
ap_log_pid(pconf, ap_pid_fname);
916916

917917
/* Initialize cross-process accept lock */
918-
rv = ap_proc_mutex_create(&accept_mutex, ap_accept_mutex_type, NULL, s,
918+
rv = ap_proc_mutex_create(&accept_mutex, AP_ACCEPT_MUTEX_TYPE, NULL, s,
919919
_pconf, 0);
920920
if (rv != APR_SUCCESS) {
921921
mpm_state = AP_MPMQ_STOPPING;
@@ -1268,7 +1268,7 @@ static int prefork_pre_config(apr_pool_t *p, apr_pool_t *plog, apr_pool_t *ptemp
12681268
foreground = ap_exists_config_define("FOREGROUND");
12691269
}
12701270

1271-
ap_mutex_register(p, ap_accept_mutex_type, NULL, APR_LOCK_DEFAULT, 0);
1271+
ap_mutex_register(p, AP_ACCEPT_MUTEX_TYPE, NULL, APR_LOCK_DEFAULT, 0);
12721272

12731273
/* sigh, want this only the second time around */
12741274
retained = ap_retained_data_get(userdata_key);

server/mpm/worker/worker.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1707,7 +1707,7 @@ static int worker_run(apr_pool_t *_pconf, apr_pool_t *plog, server_rec *s)
17071707
ap_log_pid(pconf, ap_pid_fname);
17081708

17091709
/* Initialize cross-process accept lock */
1710-
rv = ap_proc_mutex_create(&accept_mutex, ap_accept_mutex_type, NULL, s,
1710+
rv = ap_proc_mutex_create(&accept_mutex, AP_ACCEPT_MUTEX_TYPE, NULL, s,
17111711
_pconf, 0);
17121712
if (rv != APR_SUCCESS) {
17131713
mpm_state = AP_MPMQ_STOPPING;
@@ -1950,7 +1950,7 @@ static int worker_pre_config(apr_pool_t *pconf, apr_pool_t *plog,
19501950
foreground = ap_exists_config_define("FOREGROUND");
19511951
}
19521952

1953-
ap_mutex_register(pconf, ap_accept_mutex_type, NULL, APR_LOCK_DEFAULT, 0);
1953+
ap_mutex_register(pconf, AP_ACCEPT_MUTEX_TYPE, NULL, APR_LOCK_DEFAULT, 0);
19541954

19551955
/* sigh, want this only the second time around */
19561956
retained = ap_retained_data_get(userdata_key);

0 commit comments

Comments
 (0)