main: cast sig_atomic_t to long, to fix the printf portability

This commit is contained in:
Baptiste Daroussin 2021-09-30 17:28:36 +02:00
parent 6a9f66b837
commit bfff39b7c9

2
main.c
View file

@ -374,7 +374,7 @@ main(int argc, char *const *argv)
}
if (aborted)
LOG_INFO("aborted: %s (%d)", strsignal(aborted), aborted);
LOG_INFO("aborted: %s (%ld)", strsignal(aborted), (long)aborted);
done:
/* Signal abort to other threads */