From: Karel Zak Date: Thu, 14 May 2026 09:24:27 +0000 (+0200) Subject: agetty: use bool for struct agetty_issue bitfields X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=d45cb16f7aaa2923178f2633586fae89d14e3726;p=thirdparty%2Futil-linux.git agetty: use bool for struct agetty_issue bitfields 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 --- diff --git a/agetty-cmd/agetty.h b/agetty-cmd/agetty.h index fcef62955..ec9257cca 100644 --- a/agetty-cmd/agetty.h +++ b/agetty-cmd/agetty.h @@ -1,6 +1,7 @@ #ifndef UTIL_LINUX_AGETTY_H #define UTIL_LINUX_AGETTY_H +#include #include #include #include @@ -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. */