diff options
Diffstat (limited to '')
-rw-r--r-- | src/f_fail.c | 21 |
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); } |