summaryrefslogtreecommitdiffstats
path: root/src/f_alloc.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-08-12 20:43:30 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-08-12 20:43:30 +0200
commitff116f01c3680d0e5d8c32dd9978ed05a37f800c (patch)
tree73765e5ac7ea4ec8af461f44f6d8288fdad6fd82 /src/f_alloc.c
parentLots of stuff to do (diff)
download42-minishell-ff116f01c3680d0e5d8c32dd9978ed05a37f800c.tar.gz
42-minishell-ff116f01c3680d0e5d8c32dd9978ed05a37f800c.tar.bz2
42-minishell-ff116f01c3680d0e5d8c32dd9978ed05a37f800c.tar.xz
42-minishell-ff116f01c3680d0e5d8c32dd9978ed05a37f800c.tar.zst
42-minishell-ff116f01c3680d0e5d8c32dd9978ed05a37f800c.zip
FeelsCleanMan
Diffstat (limited to 'src/f_alloc.c')
-rw-r--r--src/f_alloc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/f_alloc.c b/src/f_alloc.c
index 62b7008..641bc9f 100644
--- a/src/f_alloc.c
+++ b/src/f_alloc.c
@@ -17,7 +17,7 @@
#include <errno.h>
#include "s_destroy.h"
-#include "s_lcom.h"
+#include "s_line.h"
#include "s_struct.h"
void
@@ -25,7 +25,7 @@ void
{
char tmp[255];
- lcom_clear(&msh->curr);
+ s_line_clear(&msh->curr);
ft_strlcpy(tmp, msh->shname, ft_strlen(msh->shname) + 1);
s_destroy(msh);
ft_dprintf(STDERR_FILENO, "%s: %s\n", tmp, strerror(errno));
@@ -33,8 +33,8 @@ void
}
void
- f_alloc_and_clear_lcom(t_msh *msh)
+ f_alloc_and_clear_line(t_msh *msh)
{
- lcom_clear(&msh->curr);
+ s_line_clear(&msh->curr);
ft_dprintf(STDERR_FILENO, "%s: %s\n", msh->shname, strerror(errno));
}