From c5aae008dee36276154882d8fd56c3bdeb473474 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Tue, 27 Oct 2020 19:59:20 +0100 Subject: Now norme --- src/e_builtins.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'src/e_builtins.c') diff --git a/src/e_builtins.c b/src/e_builtins.c index d08cf63..2ecac83 100644 --- a/src/e_builtins.c +++ b/src/e_builtins.c @@ -13,7 +13,6 @@ #include #include #include -#include #include #include "b_builtins.h" @@ -39,9 +38,9 @@ static void e_export_env_fork(const t_com *ptr, t_msh *msh) } } -static void e_builtin_child(const t_com *ptr, uint8_t bu_id, t_msh *msh) +static void e_builtin_child(const t_com *ptr, unsigned char bu_id, t_msh *msh) { - int32_t ret; + int ret; if (ptr->env_fork != NULL) e_export_env_fork(ptr, msh); @@ -60,11 +59,11 @@ static void e_builtin_child(const t_com *ptr, uint8_t bu_id, t_msh *msh) static void e_builtin_parent(pid_t pid, const t_com *ptr, - uint8_t bu_id, + unsigned char bu_id, t_msh *msh) { - int32_t status; - int32_t ret; + int status; + int ret; while (wait(&status) != pid) ; @@ -93,7 +92,7 @@ static void e_builtin_parent(pid_t pid, ** TODO: handle fork() failed */ -void e_builtin(const t_com *ptr, uint8_t bu_id, t_msh *msh) +void e_builtin(const t_com *ptr, unsigned char bu_id, t_msh *msh) { pid_t pid; -- cgit v1.2.3