aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ft_key_events.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ft_key_events.c b/src/ft_key_events.c
index 188a770..82235fc 100644
--- a/src/ft_key_events.c
+++ b/src/ft_key_events.c
@@ -41,12 +41,12 @@ ft_key_event(int keycode, void *param)
fun_ptr[3] = ft_w_key;
ft_printf("Key [%d] pressed\n", keycode);
(keycode == 13) ? (keycode = 3) : 0;
- (keycode <= 3) ? (*fun_ptr[keycode])() : 0;
+ (keycode <= 3) ? ((*fun_ptr[keycode])()) : 0;
if (keycode == 53)
{
ft_memdel(((t_winlist*)param)->wlx);
ft_memdel(((t_winlist*)param)->winptr);
- ft_memdel(((t_winlist*)param));
+ ft_memdel((t_winlist*)param);
ft_printf("Exiting program\n");
exit(0);
}