static double get_y_coord(const char *args)
{
char *endptr; /* we want it non-null */
- char *start_of_y = NULL;
+ const char *start_of_y = NULL;
double y_coord = -1; /* -1 is returned on error */
if (args == NULL) {
return (-1); /* in case we aren't passed anything */
}
- start_of_y = strchr(args, ','); /* the comma */
+ start_of_y = ap_strchr_c(args, ','); /* the comma */
if (start_of_y) {
}
/* must be a relative URL to be combined with base */
- if (strchr(base, '/') == NULL && (!strncmp(value, "../", 3)
+ if (ap_strchr_c(base, '/') == NULL && (!strncmp(value, "../", 3)
|| !strcmp(value, ".."))) {
ap_log_rerror(APLOG_MARK, APLOG_NOERRNO|APLOG_ERR, 0, r,
"invalid base directive in map file: %s", r->uri);
#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
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)) {
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;