summaryrefslogtreecommitdiffstats
path: root/src/e_builtins.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/e_builtins.c13
1 files changed, 6 insertions, 7 deletions
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 <sys/wait.h>
#include <libft.h>
#include <stdlib.h>
-#include <stdint.h>
#include <unistd.h>
#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;