]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
su-common: bool is a distinct type in c2x
authorCristian Rodríguez <crrodriguez@opensuse.org>
Sun, 15 Jan 2023 01:33:13 +0000 (01:33 +0000)
committerCristian Rodríguez <crrodriguez@opensuse.org>
Sun, 15 Jan 2023 01:33:13 +0000 (01:33 +0000)
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

index 04ff72c018cbf57b19b6ce5470c4126a65badee1..4b284995ee9d7f9be2226034badab5d89c195482 100644 (file)
@@ -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