]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Change hidden flag value to non-zero
authorethan-thompson <ethan.thompson@networkradius.com>
Mon, 9 Sep 2024 15:13:28 +0000 (11:13 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 9 Sep 2024 15:22:22 +0000 (09:22 -0600)
Signed-off-by: ethan-thompson <ethan.thompson@networkradius.com>
src/lib/server/cf_parse.h
src/lib/server/main_config.c

index 5720ce50fe2b9c53debd8478e1c8e3e063ed321b..b30974bcbe2a9ef4556bdcdd6b6b19db57ffff71 100644 (file)
@@ -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)
 
index 22ca4dc8dd31c64404965eb9fd51ea95fc621943..431db312a037e44108b28fd2026bbf2edd094ee9 100644 (file)
@@ -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" },