AP_DECLARE(int) ap_cstr_casecmpn(const char *s1, const char *s2, apr_size_t n);
/**
- * Default flags for apr_dir_*().
+ * Default flags for ap_dir_*fnmatch().
*/
#define AP_DIR_FLAG_NONE 0
w.flags = (optional ? AP_DIR_FLAG_OPTIONAL : AP_DIR_FLAG_NONE) | AP_DIR_FLAG_RECURSIVE;
w.cb = process_resource_config_cb;
w.ctx = &cfgs;
+ w.depth = 0;
/* don't require conf/httpd.conf if we have a -C or -c switch */
if ((ap_server_pre_read_config->nelts
const fnames *f1 = fn1;
const fnames *f2 = fn2;
- return strcmp(f1->fname,f2->fname);
+ return strcmp(f1->fname, f2->fname);
}
AP_DECLARE(ap_dir_match_t *)ap_dir_cfgmatch(cmd_parms *cmd, int flags,
const char *(*cb)(ap_dir_match_t *w, const char *fname), void *ctx)
{
- ap_dir_match_t *w = apr_palloc(cmd->temp_pool, sizeof(cmd_parms));
+ ap_dir_match_t *w = apr_palloc(cmd->temp_pool, sizeof(*w));
w->prefix = apr_pstrcat(cmd->pool, cmd->cmd->name, ": ", NULL);
w->p = cmd->pool;