From c2f9ecbcab2114b7c8127f787041c137cb98736f Mon Sep 17 00:00:00 2001 From: wescande Date: Fri, 24 Mar 2017 17:01:14 +0100 Subject: [PATCH] norme on BT_func --- 42sh/src/builtin/builtin_func.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/42sh/src/builtin/builtin_func.c b/42sh/src/builtin/builtin_func.c index efbe3cc8..419e60b1 100644 --- a/42sh/src/builtin/builtin_func.c +++ b/42sh/src/builtin/builtin_func.c @@ -6,7 +6,7 @@ /* By: wescande +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2017/03/24 15:03:02 by wescande #+# #+# */ -/* Updated: 2017/03/24 15:30:13 by wescande ### ########.fr */ +/* Updated: 2017/03/24 17:00:56 by wescande ### ########.fr */ /* */ /* ************************************************************************** */ @@ -26,11 +26,8 @@ int builtin_func(const char *path, if (!argv || !argv[0] || argv[1]) return (SH_ERR("usage: %s", FUNC_USAGE) ? 1 : 1); list = data_singleton()->lst_func; - DG(); - int toto = 0; while (list) { - DG(">>>>>>>%d", toto++); if (!(ast = list->content)) return (SH_ERR("unexpected error")); name = token_to_argv(((t_astnode *)(*ast)->item)->data.cmd.token, 1);