From 6719b1968155c26cad4a4c3842d609a207b7278e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20Gallou=C3=ABt?= Date: Mon, 24 Sep 2018 13:00:09 +0000 Subject: [PATCH] Code cleanup MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Adrien Gallouët --- src/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.c b/src/main.c index e947601..11ea37c 100644 --- a/src/main.c +++ b/src/main.c @@ -8,7 +8,7 @@ volatile sig_atomic_t gt_reload; volatile sig_atomic_t gt_quit; static void -gt_quit_handler(int sig) +gt_sa_handler(int sig) { switch (sig) { case SIGALRM: @@ -30,7 +30,7 @@ gt_set_signal(void) sigemptyset(&sa.sa_mask); - sa.sa_handler = gt_quit_handler; + sa.sa_handler = gt_sa_handler; sigaction(SIGINT, &sa, NULL); sigaction(SIGQUIT, &sa, NULL); sigaction(SIGTERM, &sa, NULL);