|
@@ -51,14 +51,10 @@ void pipe_init_2(t_e *e, t_pipe *p, char *all_cmd)
|
|
|
** display content on structure
|
|
|
*/
|
|
|
|
|
|
-void display_data(t_pipe_redir **t)
|
|
|
+void display_data(t_pipe_redir *t)
|
|
|
{
|
|
|
- int i;
|
|
|
-
|
|
|
- i = -1;
|
|
|
- while (t[++i] != NULL)
|
|
|
- ft_printf("itxt: '%s', ifd: %d, operator: '%s', ofd: %d, otxt: '%s'\n",
|
|
|
- t[i]->itxt, t[i]->ifd, t[i]->operator, t[i]->ofd, t[i]->otxt);
|
|
|
+ ft_printf("itxt: '%s', ifd: %d, operator: '%s', ofd: %d, otxt: '%s'\n",
|
|
|
+ t->itxt, t->ifd, t->operator, t->ofd, t->otxt);
|
|
|
}
|
|
|
|
|
|
/*
|