libmpm

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

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

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

Diffstat:
Msrc/category.c | 9++++++---
1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/category.c b/src/category.c @@ -23,10 +23,12 @@ int mpm_category_free(void *tmp) { category_t *ptr = tmp; - if (ptr) { + if (ptr) + { free(ptr->name); free(ptr->parent_name); - if (ptr->parent != NULL) { + if (ptr->parent != NULL) + { ptr->parent->categ = NULL; mpm_package_free(ptr->parent); free(ptr->parent); @@ -40,7 +42,8 @@ int mpm_category_free(void *tmp) { * \param ptr Structure to initialize */ void mpm_category_init(category_t *ptr) { - if (ptr) { + if (ptr) + { ptr->name = NULL; ptr->parent_name = NULL; ptr->parent = NULL;