From: ethan-thompson Date: Mon, 9 Sep 2024 15:13:28 +0000 (-0400) Subject: Change hidden flag value to non-zero X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9c0f7dcadaa50db0f54668105b5bc94852d49394;p=thirdparty%2Ffreeradius-server.git Change hidden flag value to non-zero Signed-off-by: ethan-thompson --- diff --git a/src/lib/server/cf_parse.h b/src/lib/server/cf_parse.h index 5720ce50fe2..b30974bcbe2 100644 --- a/src/lib/server/cf_parse.h +++ b/src/lib/server/cf_parse.h @@ -395,8 +395,7 @@ _Generic(&(_ct), \ */ DIAG_OFF(attributes) typedef enum CC_HINT(flag_enum) { - CONF_FLAG_HIDDEN = 0, //!< Used by scripts to omit items from the - ///< generated documentation. + CONF_FLAG_NONE = 0, //!< No special flags. CONF_FLAG_SUBSECTION = (1 << 1), //!< Instead of putting the information into a ///< configuration structure, the configuration ///< file routines MAY just parse it directly into @@ -426,6 +425,8 @@ typedef enum CC_HINT(flag_enum) { //!< left as the default to is_set_offset //!< or is_set_ptr. CONF_FLAG_OK_MISSING = (1 << 22), //!< OK if it's missing + CONF_FLAG_HIDDEN = (1 << 23), //!< Used by scripts to omit items from the + ///< generated documentation. } conf_parser_flags_t; DIAG_ON(attributes) diff --git a/src/lib/server/main_config.c b/src/lib/server/main_config.c index 22ca4dc8dd3..431db312a03 100644 --- a/src/lib/server/main_config.c +++ b/src/lib/server/main_config.c @@ -174,7 +174,7 @@ static const conf_parser_t thread_config[] = { { FR_CONF_OFFSET("num_workers", main_config_t, max_workers), .dflt = STRINGIFY(0), .func = num_workers_parse, .dflt_func = num_workers_dflt }, - { FR_CONF_OFFSET_TYPE_FLAGS("stats_interval", FR_TYPE_TIME_DELTA | CONF_FLAG_HIDDEN, 0, main_config_t, stats_interval), }, + { FR_CONF_OFFSET_TYPE_FLAGS("stats_interval", FR_TYPE_TIME_DELTA, CONF_FLAG_HIDDEN, main_config_t, stats_interval) }, #ifdef WITH_TLS { FR_CONF_OFFSET_TYPE_FLAGS("openssl_async_pool_init", FR_TYPE_SIZE, 0, main_config_t, openssl_async_pool_init), .dflt = "64" },