Skip to content

Commit ae0fe18

Browse files
author
Takashi Sato
committed
string constness
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@894361 13f79535-47bb-0310-9956-ffa450edef68
1 parent b89ac0b commit ae0fe18

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

server/mpm/worker/worker.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,7 @@ static void dummy_signal_handler(int sig)
596596
*/
597597
}
598598

599-
static void accept_mutex_error(char *func, apr_status_t rv, int process_slot)
599+
static void accept_mutex_error(const char *func, apr_status_t rv, int process_slot)
600600
{
601601
int level = APLOG_EMERG;
602602

server/util_mutex.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -206,21 +206,21 @@ AP_DECLARE_NONSTD(const char *)ap_set_mutex(cmd_parms *cmd, void *dummy,
206206
/* "OmitPID" can appear at the end of the list, so build a list of
207207
* mutex type names while looking for "OmitPID" (anywhere) or the end
208208
*/
209-
type_list = apr_array_make(cmd->pool, 4, sizeof(char *));
209+
type_list = apr_array_make(cmd->pool, 4, sizeof(const char *));
210210
while (*arg) {
211-
char *s = ap_getword_conf(cmd->pool, &arg);
211+
const char *s = ap_getword_conf(cmd->pool, &arg);
212212

213213
if (!strcasecmp(s, "omitpid")) {
214214
omit_pid = 1;
215215
}
216216
else {
217-
char **new_type = (char **)apr_array_push(type_list);
217+
const char **new_type = (const char **)apr_array_push(type_list);
218218
*new_type = s;
219219
}
220220
}
221221

222222
if (apr_is_empty_array(type_list)) { /* no mutex type? assume "default" */
223-
char **new_type = (char **)apr_array_push(type_list);
223+
const char **new_type = (const char **)apr_array_push(type_list);
224224
*new_type = "default";
225225
}
226226

0 commit comments

Comments
 (0)