From 3649a3db01f086c9f2f57060b98c398048a80f03 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Cristian=20Rodr=C3=ADguez?= Date: Sun, 15 Jan 2023 01:33:13 +0000 Subject: [PATCH] su-common: bool is a distinct type in c2x bool is not int, this is enforced in recent C2x standard, neither is a suitable value for sig_atomic_t. --- login-utils/su-common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/login-utils/su-common.c b/login-utils/su-common.c index 04ff72c018..4b284995ee 100644 --- a/login-utils/su-common.c +++ b/login-utils/su-common.c @@ -165,7 +165,7 @@ struct su_context { }; -static sig_atomic_t volatile caught_signal = false; +static sig_atomic_t volatile caught_signal = 0; /* Signal handler for parent process. */ static void -- 2.47.3