diff options
author | Ben Laurie <ben@apache.org> | 2000-06-20 22:52:44 +0200 |
---|---|---|
committer | Ben Laurie <ben@apache.org> | 2000-06-20 22:52:44 +0200 |
commit | c2e9f55954b274b94fa2bc38a9ec720857f24aff (patch) | |
tree | 39ecbdca376da2db7fe6f4b5f6cfc0ac5e4fbffd /modules/mappers/mod_userdir.c | |
parent | Convert module and fix warnings. (diff) | |
download | apache2-c2e9f55954b274b94fa2bc38a9ec720857f24aff.tar.xz apache2-c2e9f55954b274b94fa2bc38a9ec720857f24aff.zip |
Fix warnings.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85643 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/mappers/mod_userdir.c')
-rw-r--r-- | modules/mappers/mod_userdir.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/mappers/mod_userdir.c b/modules/mappers/mod_userdir.c index 911d9e8b2c..7e83bb1fb3 100644 --- a/modules/mappers/mod_userdir.c +++ b/modules/mappers/mod_userdir.c @@ -135,7 +135,7 @@ static void *create_userdir_config(ap_pool_t *p, server_rec *s) #define O_ENABLE 1 #define O_DISABLE 2 -static const char *set_user_dir(cmd_parms *cmd, void *dummy, char *arg) +static const char *set_user_dir(cmd_parms *cmd, void *dummy, const char *arg) { userdir_config * s_cfg = (userdir_config *) ap_get_module_config @@ -270,7 +270,7 @@ static int translate_userdir(request_rec *r) const char *userdir = ap_getword_conf(r->pool, &userdirs); char *filename = NULL; - if (strchr(userdir, '*')) + if (ap_strchr_c(userdir, '*')) x = ap_getword(r->pool, &userdir, '*'); if (userdir[0] == '\0' || ap_os_is_path_absolute(userdir)) { @@ -297,7 +297,7 @@ static int translate_userdir(request_rec *r) else filename = ap_pstrcat(r->pool, userdir, "/", w, NULL); } - else if (strchr(userdir, ':')) { + else if (ap_strchr_c(userdir, ':')) { redirect = ap_pstrcat(r->pool, userdir, "/", w, dname, NULL); ap_table_setn(r->headers_out, "Location", redirect); return REDIRECT; |