diff options
Diffstat (limited to 'src/c_input.c')
-rw-r--r-- | src/c_input.c | 8 |
1 files changed, 4 insertions, 4 deletions
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"); } |