]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
agetty: use bool for struct agetty_issue bitfields
authorKarel Zak <kzak@redhat.com>
Thu, 14 May 2026 09:24:27 +0000 (11:24 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 14 May 2026 11:14:57 +0000 (13:14 +0200)
Replace the unsigned int bitfields do_tcsetattr and do_tcrestore
with bool, matching the project's direction of using boolean types.

Signed-off-by: Karel Zak <kzak@redhat.com>
agetty-cmd/agetty.h

index fcef629550abf73176c261e510cbc73cf599fd4f..ec9257cca434a6c4be57fbe49fea6ae89567da27 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef UTIL_LINUX_AGETTY_H
 #define UTIL_LINUX_AGETTY_H
 
+#include <stdbool.h>
 #include <stddef.h>
 #include <stdio.h>
 #include <termios.h>
@@ -45,8 +46,8 @@ struct agetty_issue {
 #ifdef AGETTY_RELOAD
        char *mem_old;
 #endif
-       unsigned int do_tcsetattr : 1,
-                    do_tcrestore : 1;
+       bool do_tcsetattr;
+       bool do_tcrestore;
 };
 
 /* Storage for command-line options. */