aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/Makefile4
-rw-r--r--common/src/io.c5
2 files changed, 4 insertions, 5 deletions
diff --git a/common/Makefile b/common/Makefile
index e40fb30..fad09a8 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: 2021/01/08 14:32:37 by charles ### ########.fr #
+# Updated: 2021/01/08 15:05:48 by charles ### ########.fr #
# #
# **************************************************************************** #
@@ -19,7 +19,7 @@ OBJDIR = obj
INCDIR = inc
CC = gcc
-CCFLAGS = -std=c99 -Wall -Wextra -Werror -O2 -I$(INCDIR)
+CCFLAGS = -std=c99 -O2 -I$(INCDIR) -Wall -Wextra #-Werror
NAME = libphilocommon.a
diff --git a/common/src/io.c b/common/src/io.c
index c01accd..ae624fb 100644
--- a/common/src/io.c
+++ b/common/src/io.c
@@ -6,7 +6,7 @@
/* By: cacharle <me@cacharle.xyz> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/09/30 10:03:53 by cacharle #+# #+# */
-/* Updated: 2021/01/04 12:10:14 by cacharle ### ########.fr */
+/* Updated: 2021/01/08 15:19:47 by charles ### ########.fr */
/* */
/* ************************************************************************** */
@@ -37,14 +37,13 @@ static char *st_strcpy_end(char *dst, char *str)
return (dst);
}
-#define PHILO_PUT_BUF_SIZE 4048
+#define PHILO_PUT_BUF_SIZE 20000
static char g_buf[PHILO_PUT_BUF_SIZE + 256] = {'\0'};
static char *g_curr = g_buf;
void philo_put(size_t id, t_philo_event event, t_time initial_time)
{
-
g_curr = st_nbrcpy(g_curr, h_time_now() - initial_time);
g_curr = st_strcpy_end(g_curr, " ");
g_curr = st_nbrcpy(g_curr, id);