0
0
mirror of https://github.com/irssi/irssi.git synced 2025-06-30 22:18:06 -04:00

make bitfields unsigned

This commit is contained in:
Ailin Nemui 2025-04-14 18:43:18 +02:00
parent 39d15558d2
commit 8acda3f9eb
2 changed files with 4 additions and 6 deletions

View File

@ -25,7 +25,7 @@ typedef struct {
int cmd_queue_speed;
int max_query_chans;
int starttls;
int no_cap : 1;
unsigned int no_cap : 1;
} IRC_SERVER_SETUP_REC;
void irc_servers_setup_init(void);

View File

@ -43,7 +43,6 @@
#define IS_IRC_SERVER_CONNECT(conn) \
(IRC_SERVER_CONNECT(conn) ? TRUE : FALSE)
/* clang-format off */
/* all strings should be either NULL or dynamically allocated */
/* address and nick are mandatory, rest are optional */
struct _IRC_SERVER_CONNECT_REC {
@ -62,11 +61,10 @@ struct _IRC_SERVER_CONNECT_REC {
int max_query_chans;
int max_kicks, max_msgs, max_modes, max_whois;
int disallow_starttls:1;
int starttls:1;
int no_cap:1;
unsigned int disallow_starttls : 1;
unsigned int starttls : 1;
unsigned int no_cap : 1;
};
/* clang-format on */
#define STRUCT_SERVER_CONNECT_REC IRC_SERVER_CONNECT_REC
struct _IRC_SERVER_REC {