libmpm

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

commit 7218a1d25e86058063dd4c6b47fc8e850e50f685
parent 809e0dfa7d7ccb205e0f8a4f7557045d3519b946
Author: Ne02ptzero <louis@ne02ptzero.me>
Date:   Mon,  6 Mar 2017 19:22:04 +0100

Fix(Code style): config{c,h}

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

diff --git a/inc/config.h b/inc/config.h @@ -79,7 +79,7 @@ # define CONFIG_BOOT_GRUB_DIR "grub-dir" # define CONFIG_BOOT_GRUB_DIR_DEF "/boot/grub" -# define ERROR_MAX_LEN 250 +# define ERROR_MAX_LEN 250 typedef struct s_config { cfg_t *ptr; diff --git a/src/config.c b/src/config.c @@ -116,7 +116,8 @@ config_t *parse_config(const char *path, u8_t *ret) { * \param ptr Pointer to free */ void config_free(config_t **ptr) { - if (ptr != NULL && *ptr != NULL) { + if (ptr != NULL && *ptr != NULL) + { cfg_free((*ptr)->ptr); free((*ptr)->fn); free((*ptr)->err);