diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-07-30 20:30:58 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-07-30 20:30:58 +0200 |
commit | c19bd35afdb45e49cebdfd96e7adb1e6fe477f0c (patch) | |
tree | c5a7655d5fa858da43b0c9e3f1f616d269aae172 /src/f_fail.c | |
parent | Work in progress, freed leak (diff) | |
download | 42-minishell-c19bd35afdb45e49cebdfd96e7adb1e6fe477f0c.tar.gz 42-minishell-c19bd35afdb45e49cebdfd96e7adb1e6fe477f0c.tar.bz2 42-minishell-c19bd35afdb45e49cebdfd96e7adb1e6fe477f0c.tar.xz 42-minishell-c19bd35afdb45e49cebdfd96e7adb1e6fe477f0c.tar.zst 42-minishell-c19bd35afdb45e49cebdfd96e7adb1e6fe477f0c.zip |
Double exit no more
Diffstat (limited to 'src/f_fail.c')
-rw-r--r-- | src/f_fail.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/f_fail.c b/src/f_fail.c index aae00fb..a3a1df1 100644 --- a/src/f_fail.c +++ b/src/f_fail.c @@ -28,14 +28,14 @@ static void } void - fail_no_options(const char concern[], + f_fail_no_options(const char concern[], t_msh *msh) { write_fail(concern, FT_FAIL_NO_OPTIONS, msh); } void - fail_identifier(const char concern[], + f_fail_identifier(const char concern[], const char identifier[], t_msh *msh) { @@ -44,14 +44,14 @@ void } void - fail_too_many_args(const char concern[], + f_fail_too_many_args(const char concern[], t_msh *msh) { write_fail(concern, FT_FAIL_TOO_MANY_ARGS, msh); } void - fail_alloc(t_msh *msh) + f_fail_alloc(t_msh *msh) { ft_dprintf(STDERR_FILENO, "%s: %s\n", msh->shname, strerror(errno)); exit(FT_RET_ALLOC); |