aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRostislav Skudnov <rostislav@tuxera.com>2018-01-22 15:57:18 +0000
committerEryu Guan <eguan@redhat.com>2018-01-24 12:01:22 +0800
commit38a006979b36e5fececfa410b5567912ffd18724 (patch)
treea1bc51d921a4ccd1bb8fcf93f62a5fa045a3f949
parent53b8b92652aa80e4e74345c109f43e390ebb0fe9 (diff)
downloadxfstests-38a006979b36e5fececfa410b5567912ffd18724.tar.gz
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 <rostislav@tuxera.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Eryu Guan <eguan@redhat.com>
-rw-r--r--src/t_mtab.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/t_mtab.c b/src/t_mtab.c
index 5e9d521675..fd85c6bdf6 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);
}