Mercurial > hg > th-libs
changeset 780:847d1ebe5b81
Indent cosmetic.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 04 Jul 2023 01:22:50 +0300 |
parents | 97833753b599 |
children | 4cc514343376 |
files | th_config.c th_config.h |
diffstat | 2 files changed, 5 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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) {
--- 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);