From bfff39b7c923fd7eaaec86fe31f621f6c6380879 Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Thu, 30 Sep 2021 17:28:36 +0200 Subject: [PATCH] main: cast sig_atomic_t to long, to fix the printf portability --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index e92e2e5..49d3985 100644 --- a/main.c +++ b/main.c @@ -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 */