libmpm

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

commit a6e8d0b2e30164df534ac6ed0e00ac9bc3129d38
parent c7f2c0a5bbb61e3ee90ba35dc93d8c58e00838d4
Author: Ne02ptzero <louis@ne02ptzero.me>
Date:   Wed, 26 Jul 2017 14:45:45 +0200

Add(Config): Added a need_save in config_t structure

Diffstat:
Minc/config.h | 1+
Msrc/config.c | 1+
2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/inc/config.h b/inc/config.h @@ -85,6 +85,7 @@ typedef struct config_s { cfg_t *ptr; char *fn; char *err; + bool need_save; } config_t; /*! diff --git a/src/config.c b/src/config.c @@ -102,6 +102,7 @@ config_t *parse_config(const char *path, u8_t *ret) { /* Structure initialization */ config->fn = NULL; config->err = NULL; + config->need_save = false; config->ptr = cfg_init(opts, CFGF_NONE); cfg_set_error_function(config->ptr, &config_error_cb);