Skip to content

Commit 73333b3

Browse files
committed
fix the "fix" in r883816
internal function ap_set_mutex() should be AP_DECLARE_NONSTD() like our other directive parsers git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@883859 13f79535-47bb-0310-9956-ffa450edef68
1 parent 44a8db0 commit 73333b3

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

include/util_mutex.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,9 @@ AP_DECLARE(apr_status_t) ap_parse_mutex(const char *arg, apr_pool_t *pool,
9999
const char **mutexfile);
100100

101101
/* private function to process the Mutex directive */
102-
const char * ap_set_mutex(cmd_parms *cmd, void *dummy,
103-
const char *typelist,
104-
const char *mechfile);
102+
AP_DECLARE_NONSTD(const char *) ap_set_mutex(cmd_parms *cmd, void *dummy,
103+
const char *typelist,
104+
const char *mechfile);
105105

106106
/**
107107
* option flags for ap_mutex_register(), ap_global_mutex_create(), and

server/util_mutex.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,9 @@ static void mx_hash_init(apr_pool_t *p)
164164
apr_hash_set(mxcfg_by_type, "default", APR_HASH_KEY_STRING, def);
165165
}
166166

167-
const char * ap_set_mutex(cmd_parms *cmd, void *dummy,
168-
const char *type, const char *mechdir)
167+
AP_DECLARE_NONSTD(const char *)ap_set_mutex(cmd_parms *cmd, void *dummy,
168+
const char *type,
169+
const char *mechdir)
169170
{
170171
apr_pool_t *p = cmd->pool;
171172
apr_lockmech_e mech;

0 commit comments

Comments
 (0)