From: Ben Laurie Date: Sat, 17 Jun 2000 12:36:54 +0000 (+0000) Subject: Constification. X-Git-Tag: APACHE_2_0_ALPHA_5~317 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7a22b1a75a52eaf8cc9519c490c299c0d0159562;p=apache Constification. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85598 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/util.c b/server/util.c index 2f4ec7b76d..22c44e8a3d 100644 --- a/server/util.c +++ b/server/util.c @@ -550,7 +550,7 @@ API_EXPORT(char *) ap_make_dirstr_prefix(char *d, const char *s, int n) */ API_EXPORT(char *) ap_make_dirstr_parent(ap_pool_t *p, const char *s) { - char *last_slash = strrchr(s, '/'); + const char *last_slash = ap_strrchr_c(s, '/'); char *d; int l; @@ -608,7 +608,7 @@ API_EXPORT(void) ap_chdir_file(const char *file) const char *x; char buf[HUGE_STRING_LEN]; - x = strrchr(file, '/'); + x = ap_strrchr_c(file, '/'); if (x == NULL) { chdir(file); }