diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2021-09-22 11:24:06 -0400 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2021-09-30 17:34:03 -0400 |
commit | 4d99d9b78a769a28c0da68f101e78381063419fd (patch) | |
tree | 033e4cd8ef0da478038fe7134c6ec30f6fb218b9 /src/mod_dirlisting.c | |
parent | f37847b1f6d52eef66e2a775706e5bdecc00e136 (diff) | |
download | lighttpd-git-4d99d9b78a769a28c0da68f101e78381063419fd.tar.gz |
[multiple] check feature flags funcs; code reuse
config_feature_bool()
config_feature_int()
Diffstat (limited to 'src/mod_dirlisting.c')
-rw-r--r-- | src/mod_dirlisting.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/mod_dirlisting.c b/src/mod_dirlisting.c index f727db59..6d312a17 100644 --- a/src/mod_dirlisting.c +++ b/src/mod_dirlisting.c @@ -203,11 +203,7 @@ static struct dirlist_cache * mod_dirlisting_parse_cache(server *srv, const arra static pcre_keyvalue_buffer * mod_dirlisting_parse_excludes(server *srv, const array *a) { - const int pcre_jit = - !srv->srvconf.feature_flags - || config_plugin_value_tobool( - array_get_element_klen(srv->srvconf.feature_flags, - CONST_STR_LEN("server.pcre_jit")), 1); + const int pcre_jit = config_feature_bool(srv, "server.pcre_jit", 1); pcre_keyvalue_buffer * const kvb = pcre_keyvalue_buffer_init(); buffer empty = { NULL, 0, 0 }; for (uint32_t j = 0; j < a->used; ++j) { |