aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_error.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-04 16:03:30 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-04 16:03:30 +0100
commitdea9844db4bf893525d692209d004968e4bf89ad (patch)
tree5a7547d2adddfcd2c1c15a8e1db6c86344b46640 /src/ft_error.c
parentInit bmp (diff)
download42-cub3d-dea9844db4bf893525d692209d004968e4bf89ad.tar.gz
42-cub3d-dea9844db4bf893525d692209d004968e4bf89ad.tar.bz2
42-cub3d-dea9844db4bf893525d692209d004968e4bf89ad.tar.xz
42-cub3d-dea9844db4bf893525d692209d004968e4bf89ad.tar.zst
42-cub3d-dea9844db4bf893525d692209d004968e4bf89ad.zip
Tab
Diffstat (limited to 'src/ft_error.c')
-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