From 32c1fbd2cf779a65e807d0d82412ffffa2401962 Mon Sep 17 00:00:00 2001 From: Aleksey Veresov Date: Fri, 15 Nov 2019 18:01:45 +0300 Subject: [magi] --- src/param.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/param.c') diff --git a/src/param.c b/src/param.c index 8921019..d87a610 100644 --- a/src/param.c +++ b/src/param.c @@ -1,6 +1,6 @@ #include "param.h" -#include "log.h" +#include "error.h" #include #include @@ -8,8 +8,8 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Parameter */ -int magi_param_list_add( - struct magi_param_list ** list, struct magi_param * item) +int magi_param_list_add(struct magi_param_list ** list, + struct magi_param * item) { struct magi_param_list * old = *list; int ok = 1; @@ -19,14 +19,14 @@ int magi_param_list_add( (*list)->item = *item; } else { ok = 0; - magi_log("[param:list] Cannot allocate new list node."); + magi_error_set("[param:list] Cannot allocate new list node."); *list = old; } return ok; } -struct magi_param * magi_param_list_get( - struct magi_param_list * list, const char * name) +struct magi_param * magi_param_list_get(struct magi_param_list * list, + const char * name) { struct magi_param * item = 0; if (list && name) { -- cgit v1.2.3