make bitfields unsigned

This commit is contained in:
Ailin Nemui 2025-04-14 18:43:18 +02:00
parent a5441f62b9
commit 3e9b7dd873
3 changed files with 5 additions and 5 deletions

View File

@ -23,7 +23,7 @@ IndentCaseLabels: false
IndentWidth: 8 IndentWidth: 8
IndentWrappedFunctionNames: true IndentWrappedFunctionNames: true
KeepEmptyLinesAtTheStartOfBlocks: false KeepEmptyLinesAtTheStartOfBlocks: false
Language: Cpp # Language: Cpp
Cpp11BracedListStyle: false Cpp11BracedListStyle: false
MaxEmptyLinesToKeep: 1 MaxEmptyLinesToKeep: 1
PointerAlignment: Right PointerAlignment: Right

View File

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

View File

@ -62,9 +62,9 @@ struct _IRC_SERVER_CONNECT_REC {
int max_query_chans; int max_query_chans;
int max_kicks, max_msgs, max_modes, max_whois; int max_kicks, max_msgs, max_modes, max_whois;
int disallow_starttls:1; unsigned int disallow_starttls:1;
int starttls:1; unsigned int starttls:1;
int no_cap:1; unsigned int no_cap:1;
}; };
/* clang-format on */ /* clang-format on */