From 38a006979b36e5fececfa410b5567912ffd18724 Mon Sep 17 00:00:00 2001 From: Rostislav Skudnov Date: Mon, 22 Jan 2018 15:57:18 +0000 Subject: [PATCH] src/t_mtab: Replace sys_siglist[] with strsignal() strsignal(3) says that strsignal() should be used instead of sys_siglist[]. Signed-off-by: Rostislav Skudnov Reviewed-by: Christoph Hellwig Signed-off-by: Eryu Guan --- src/t_mtab.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/t_mtab.c b/src/t_mtab.c index 5e9d5216..fd85c6bd 100644 --- a/src/t_mtab.c +++ b/src/t_mtab.c @@ -34,7 +34,7 @@ static int signals_have_been_setup = 0; /* Ensure that the lock is released if we are interrupted. */ static void handler (int sig) { - fprintf(stderr, "%s\n", sys_siglist[sig]); + fprintf(stderr, "%s\n", strsignal(sig)); exit(1); } -- 2.30.2