summaryrefslogtreecommitdiffstats
path: root/src/f_fail.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-10-01 18:35:09 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-10-01 18:35:09 +0200
commitcad4c0e70d39a6ad5637f629df28bf8e2088c168 (patch)
treeb4ef33bc0665a8a12000d63ad953cfe7a7dd07ce /src/f_fail.c
parentNormed f_com (diff)
download42-minishell-cad4c0e70d39a6ad5637f629df28bf8e2088c168.tar.gz
42-minishell-cad4c0e70d39a6ad5637f629df28bf8e2088c168.tar.bz2
42-minishell-cad4c0e70d39a6ad5637f629df28bf8e2088c168.tar.xz
42-minishell-cad4c0e70d39a6ad5637f629df28bf8e2088c168.tar.zst
42-minishell-cad4c0e70d39a6ad5637f629df28bf8e2088c168.zip
Normed multiple fs
Diffstat (limited to 'src/f_fail.c')
-rw-r--r--src/f_fail.c21
1 files changed, 6 insertions, 15 deletions
diff --git a/src/f_fail.c b/src/f_fail.c
index 28f744b..7b48b03 100644
--- a/src/f_fail.c
+++ b/src/f_fail.c
@@ -19,32 +19,23 @@
#include "d_define.h"
#include "s_struct.h"
-static void
- write_fail(const char concern[],
- const char msg[],
- t_msh *msh)
+static void f_write_fail(const char concern[], const char msg[], t_msh *msh)
{
ft_dprintf(STDERR_FILENO, "%s: %s: %s\n", msh->argv[0], concern, msg);
}
-void
- f_fail_no_options(const char concern[],
- t_msh *msh)
+void f_fail_no_options(const char concern[], t_msh *msh)
{
- write_fail(concern, F_NO_OPTIONS, msh);
+ f_write_fail(concern, F_NO_OPTIONS, msh);
}
-void
- f_fail_identifier(const char concern[],
- const char identifier[])
+void f_fail_identifier(const char concern[], const char identifier[])
{
ft_dprintf(STDERR_FILENO, "minishell: %s: `%s': not a valid identifier\n",
concern, identifier);
}
-void
- f_fail_too_many_args(const char concern[],
- t_msh *msh)
+void f_fail_too_many_args(const char concern[], t_msh *msh)
{
- write_fail(concern, F_TOO_MANY_ARGS, msh);
+ f_write_fail(concern, F_TOO_MANY_ARGS, msh);
}