From edb4aa1304435b17d62a7d925df2c95bdb854079 Mon Sep 17 00:00:00 2001 From: salad Date: Fri, 6 Nov 2020 22:21:04 +0100 Subject: static something --- src/c_input.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/c_input.c') diff --git a/src/c_input.c b/src/c_input.c index 5e7e937..f26bbad 100644 --- a/src/c_input.c +++ b/src/c_input.c @@ -24,13 +24,13 @@ #include "m_loop.h" t_msh - *c_get_struct(int mode, t_msh *msh) + *c_get_struct(int mode, t_msh **msh) { static t_msh *mstruct = NULL; if (mode) { - mstruct = msh; + mstruct = *msh; } return (mstruct); } @@ -42,9 +42,9 @@ void c_signal_int(int signo) msh = NULL; signal(SIGINT, c_signal_int); (void)signo; - msh = c_get_struct(0, msh); + msh = c_get_struct(0, &msh); + ft_printf("[%s]\n", msh->ps[0]); msh->ret = 130; - write(1, "qwe", 3); ioctl(1, TIOCSTI, "\002"); } -- cgit v1.2.3