aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_error.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/ft_error.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ft_error.c b/src/ft_error.c
index b793b96..87be01e 100644
--- a/src/ft_error.c
+++ b/src/ft_error.c
@@ -15,13 +15,13 @@
#include <unistd.h>
int
- ft_error(const char *errmsg, t_cub *clist)
+ ft_error(uint8_t retval, const char *errmsg, t_cub *clist)
{
ft_dprintf(STDERR_FILENO, "Error\n");
ft_dprintf(STDERR_FILENO,
"\033[1;31m%s\033[0m\n",
errmsg);
- return (ft_exit(FT_RET_BMP_ERR, clist));
+ return (ft_exit(retval, clist));
}
int