summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-10-03 16:49:28 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-10-03 16:49:28 +0200
commit87552d801502e6dbb702147effac735cfab30faf (patch)
tree819cd7c68caa03e7093832641d4d16bf6335bbaf
parentNormed s_lpipes (diff)
download42-minishell-87552d801502e6dbb702147effac735cfab30faf.tar.gz
42-minishell-87552d801502e6dbb702147effac735cfab30faf.tar.bz2
42-minishell-87552d801502e6dbb702147effac735cfab30faf.tar.xz
42-minishell-87552d801502e6dbb702147effac735cfab30faf.tar.zst
42-minishell-87552d801502e6dbb702147effac735cfab30faf.zip
New TODO entry, normed s_redir
-rw-r--r--TODO.org1
-rw-r--r--src/s_lredir.c2
-rw-r--r--src/s_lredir.h8
3 files changed, 6 insertions, 5 deletions
diff --git a/TODO.org b/TODO.org
index 287329d..25604ff 100644
--- a/TODO.org
+++ b/TODO.org
@@ -21,6 +21,7 @@
** TODO [#A] msh ~> qwewqrqrqwrqwrqr ($? and output vs bash)
** TODO [#A] pipes don't split "qweqwreq | qweqweqe"
** TODO [#A] bus error on msh ~> exit
+** TODO [#A] various very bad '|' splits
** DONE [#A] SEGV on pipes
** DONE [#B] forked write(2) stuff on cd
** DONE [#B] Multiline && ||
diff --git a/src/s_lredir.c b/src/s_lredir.c
index 84e857c..cee0691 100644
--- a/src/s_lredir.c
+++ b/src/s_lredir.c
@@ -43,8 +43,8 @@ void s_lredir_add_back(t_lredir **lredir, t_lredir *new)
void s_lredir_clear(struct s_lredir **lredir)
{
- struct s_lredir *tmp;
struct s_lredir *renext;
+ struct s_lredir *tmp;
if (lredir == NULL)
return ;
diff --git a/src/s_lredir.h b/src/s_lredir.h
index 4b82511..cf9bc6c 100644
--- a/src/s_lredir.h
+++ b/src/s_lredir.h
@@ -10,12 +10,12 @@
/* */
/* ************************************************************************** */
-#ifndef S_LREDIR_H
-#define S_LREDIR_H
+#ifndef FT_S_LREDIR_H
+# define FT_S_LREDIR_H
-#include <stdint.h>
+# include <stdint.h>
-#include "s_struct.h"
+# include "s_struct.h"
void s_lredir_add_back(t_lredir **lredir, t_lredir *new);
void s_lredir_clear(struct s_lredir **lredir);