libmpm

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

commit d57bbd7a7a7c2b502b0d768ee51a7fc70f294c24
parent 3fdd4e1d3b4bd914966060824f6deecb1b2489c4
Author: Ne02ptzero <louis@ne02ptzero.me>
Date:   Fri, 10 Feb 2017 11:24:20 +0100

Fix(Category): Tab2Spaces

Diffstat:
Msrc/category.c | 38+++++++++++++++++++-------------------
1 file changed, 19 insertions(+), 19 deletions(-)

diff --git a/src/category.c b/src/category.c @@ -20,30 +20,30 @@ * \brief Free a category * \note This function can be used as a list_free callback */ -int mpm_category_free(void *tmp) { - category_t *ptr = tmp; +int mpm_category_free(void *tmp) { + category_t *ptr = tmp; - if (ptr) { - free(ptr->name); - free(ptr->parent_name); - if (ptr->parent != NULL) { - ptr->parent->categ = NULL; - mpm_package_free(ptr->parent); - free(ptr->parent); - } - } - return 1; + if (ptr) { + free(ptr->name); + free(ptr->parent_name); + if (ptr->parent != NULL) { + ptr->parent->categ = NULL; + mpm_package_free(ptr->parent); + free(ptr->parent); + } + } + return 1; } /*! * \brief Initialize a category_t * \param ptr Structure to initialize */ -void mpm_category_init(category_t *ptr) { - if (ptr) { - ptr->name = NULL; - ptr->parent_name = NULL; - ptr->parent = NULL; - ptr->id = 0; - } +void mpm_category_init(category_t *ptr) { + if (ptr) { + ptr->name = NULL; + ptr->parent_name = NULL; + ptr->parent = NULL; + ptr->id = 0; + } }