aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/Makefile8
-rw-r--r--common/common.h4
2 files changed, 6 insertions, 6 deletions
diff --git a/common/Makefile b/common/Makefile
index 082d66e..62d75c9 100644
--- a/common/Makefile
+++ b/common/Makefile
@@ -6,7 +6,7 @@
# By: cacharle <marvin@42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2020/02/09 22:39:08 by cacharle #+# #+# #
-# Updated: 2020/02/14 00:49:18 by cacharle ### ########.fr #
+# Updated: 2020/09/30 08:22:35 by cacharle ### ########.fr #
# #
# **************************************************************************** #
@@ -14,7 +14,7 @@ LIB = ar rcs
RM = rm -rf
CC = gcc
-CCFLAGS = -Wall -Wextra #-Werror
+CCFLAGS = -O2 -Wall -Wextra -Werror
NAME = libphilocommon.a
@@ -31,8 +31,8 @@ $(NAME): $(OBJ)
clean:
$(RM) $(OBJ)
-
-fclean: clean
$(RM) $(NAME)
re: fclean all
+
+.PHONY: all clean re
diff --git a/common/common.h b/common/common.h
index b6f21c2..0b64e92 100644
--- a/common/common.h
+++ b/common/common.h
@@ -6,7 +6,7 @@
/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/02/08 22:58:35 by cacharle #+# #+# */
-/* Updated: 2020/09/30 07:57:32 by cacharle ### ########.fr */
+/* Updated: 2020/09/30 08:40:38 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
@@ -40,7 +40,7 @@ typedef struct
long int meal_num;
} t_philo_args;
-typedef void (*t_routine)(void *arg);
+typedef void *(*t_routine)(void *arg);
/*
** common.c