libmpm

morphux C package management library
Log | Files | Refs | Submodules | README | LICENSE | git clone https://git.ne02ptzero.me/git/libmpm

commit 73f17db89c83de760dddbca749d2d54815094014
parent 0cfca235daad3cef1780c3a556bf7e45ff00e96c
Author: Ne02ptzero <louis@ne02ptzero.me>
Date:   Wed, 26 Jul 2017 17:26:53 +0200

Fix(Config): Explicit list declarations

Diffstat:
Msrc/config.c | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/config.c b/src/config.c @@ -29,6 +29,8 @@ static void config_error_cb(cfg_t *ptr, const char *fmt, va_list ap) { strcpy(g_error, err); } +#define MPM_STR_LIST CFGF_MULTI | CFGF_LIST + config_t *parse_config(const char *path, u8_t *ret) { config_t *config = NULL; @@ -58,8 +60,8 @@ config_t *parse_config(const char *path, u8_t *ret) { /* Compile section */ cfg_opt_t opts_comp[] = { CFG_INT(CONFIG_COMP_SBU, CONFIG_COMP_SBU_DEF, CFGF_NONE), - CFG_STR_LIST(CONFIG_COMP_CONF_ARG, CONFIG_COMP_CONF_ARG_DEF, CFGF_NONE), - CFG_STR_LIST(CONFIG_COMP_MAKE_ARG, CONFIG_COMP_MAKE_ARG_DEF, CFGF_NONE), + CFG_STR_LIST(CONFIG_COMP_CONF_ARG, CONFIG_COMP_CONF_ARG_DEF, MPM_STR_LIST), + CFG_STR_LIST(CONFIG_COMP_MAKE_ARG, CONFIG_COMP_MAKE_ARG_DEF, MPM_STR_LIST), CFG_END() };