summaryrefslogtreecommitdiffstats
path: root/src/e_pipes.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/e_pipes.c')
-rw-r--r--src/e_pipes.c32
1 files changed, 1 insertions, 31 deletions
diff --git a/src/e_pipes.c b/src/e_pipes.c
index 1fb6fcf..9ab08ba 100644
--- a/src/e_pipes.c
+++ b/src/e_pipes.c
@@ -29,7 +29,7 @@
#include "u_utils.h"
#include "u_path.h"
-static uint8_t e_get_current_path(char fullpath[],
+static uint8_t e_get_current_path(char fullpath[],
struct s_lpipes *ptr,
t_msh *msh)
{
@@ -117,36 +117,6 @@ static void e_pipe_exec(size_t pipes, t_msh *msh)
msh->ret = WEXITSTATUS(status);
}
-/* static void e_fullpath_not_found(t_com *ptr, t_msh *msh) */
-/* { */
-/* f_command_not_found(ptr->bin); */
-/* u_eof_fd(msh->fd); */
-/* s_com_destroy(&msh->com); */
-/* s_line_clear(&msh->curr); */
-/* s_destroy(msh); */
-/* exit(127); */
-/* } */
-
-/* static char **e_get_fullpath(size_t pipes, t_msh *msh) */
-/* { */
-/* struct s_lpipes *rptr; */
-/* char **fullpath; */
-/* size_t i; */
-
-/* rptr = msh->pipes; */
-/* if ((fullpath = (char **)malloc((pipes + 2) * sizeof(char *))) == NULL) */
-/* f_alloc_and_destroy_msh(msh); */
-/* fullpath[pipes + 1] = NULL; */
-/* i = 0; */
-/* while (rptr != NULL) */
-/* { */
-/* fullpath[i] = e_get_current_path(rptr, msh); */
-/* i++; */
-/* rptr = rptr->next; */
-/* } */
-/* return (fullpath); */
-/* } */
-
void e_pipes(t_msh *msh)
{
const size_t pipes = e_get_pipes_count(msh->pipes);