# HG changeset patch # User Matti Hamalainen # Date 1688422970 -10800 # Node ID 847d1ebe5b8183924b6e2e1b00ae8bee595e7581 # Parent 97833753b599c83e06b772c3c803a1b15716b9de Indent cosmetic. diff -r 97833753b599 -r 847d1ebe5b81 th_config.c --- a/th_config.c Tue Jul 04 01:19:13 2023 +0300 +++ b/th_config.c Tue Jul 04 01:22:50 2023 +0300 @@ -954,7 +954,8 @@ /* Find a configuration item based on section and/or name (and/or) type. * The first matching item will be returned. */ -static th_cfgitem_t *th_cfg_item_find_do(th_cfgitem_t *item, const char *name, const int type) +static th_cfgitem_t *th_cfg_item_find_do(th_cfgitem_t *item, + const char *name, const int type) { while (item != NULL) { diff -r 97833753b599 -r 847d1ebe5b81 th_config.h --- a/th_config.h Tue Jul 04 01:19:13 2023 +0300 +++ b/th_config.h Tue Jul 04 01:22:50 2023 +0300 @@ -62,9 +62,9 @@ // // Functions // -int th_cfg_read(th_ioctx_t *fh, th_cfgitem_t *cfg /*, TODO XXX const int flags (for controlling things like "error out on unknown items or ignore" etc */); -void th_cfg_free(th_cfgitem_t *cfg, void (*freefunc)(th_cfgitem_t *)); -int th_cfg_write(th_ioctx_t *fh, const th_cfgitem_t *cfg); +int th_cfg_read(th_ioctx_t *fh, th_cfgitem_t *cfg /*, TODO XXX const int flags (for controlling things like "error out on unknown items or ignore" etc */); +void th_cfg_free(th_cfgitem_t *cfg, void (*freefunc)(th_cfgitem_t *)); +int th_cfg_write(th_ioctx_t *fh, const th_cfgitem_t *cfg); int th_cfg_add_comment(th_cfgitem_t **cfg, const char *comment); int th_cfg_add_section(th_cfgitem_t **cfg, const char *name, th_cfgitem_t *sect);