mirror of
https://github.com/ailin-nemui/irssi.git
synced 2025-05-01 07:51:04 -05:00
Merge pull request #1559 from ailin-nemui/bitwarnings
make bitfields unsigned
This commit is contained in:
commit
b14bc4a2fc
@ -6,7 +6,7 @@
|
||||
#define IRSSI_GLOBAL_CONFIG "irssi.conf" /* config file name in /etc/ */
|
||||
#define IRSSI_HOME_CONFIG "config" /* config file name in ~/.irssi/ */
|
||||
|
||||
#define IRSSI_ABI_VERSION 55
|
||||
#define IRSSI_ABI_VERSION 56
|
||||
|
||||
#define DEFAULT_SERVER_ADD_PORT 6667
|
||||
#define DEFAULT_SERVER_ADD_TLS_PORT 6697
|
||||
|
@ -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);
|
||||
|
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user