summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/fe-common/core/fe-windows.h2
-rw-r--r--src/fe-common/core/hilight-text.h8
-rw-r--r--src/irc/bot/botnet.h18
-rw-r--r--src/irc/core/channel-rejoin.h2
-rw-r--r--src/irc/core/irc-servers.h18
-rw-r--r--src/irc/core/netsplit.h2
-rw-r--r--src/irc/dcc/dcc.h12
-rw-r--r--src/irc/notifylist/module.h12
-rw-r--r--src/irc/notifylist/notifylist.h2
-rw-r--r--src/irc/proxy/module.h4
10 files changed, 40 insertions, 40 deletions
diff --git a/src/fe-common/core/fe-windows.h b/src/fe-common/core/fe-windows.h
index 16fff673..cc915f0c 100644
--- a/src/fe-common/core/fe-windows.h
+++ b/src/fe-common/core/fe-windows.h
@@ -24,7 +24,7 @@ typedef struct {
GSList *waiting_channels; /* list of "<server tag> <channel>" */
int lines;
- int destroying:1;
+ unsigned int destroying:1;
/* window-specific command line history */
GList *cmdhist, *histpos;
diff --git a/src/fe-common/core/hilight-text.h b/src/fe-common/core/hilight-text.h
index 0d2291a4..83ab8f8c 100644
--- a/src/fe-common/core/hilight-text.h
+++ b/src/fe-common/core/hilight-text.h
@@ -9,10 +9,10 @@ typedef struct {
char *color; /* if starts with number, \003 is automatically
inserted before it. */
- int nick:1; /* hilight only the nick, not a full line - works only with msgs. */
- int nickmask:1; /* `text 'is a nick mask - colorify the nick */
- int fullword:1; /* match `text' only for full words */
- int regexp:1; /* `text' is a regular expression */
+ unsigned int nick:1; /* hilight only the nick, not a full line - works only with msgs. */
+ unsigned int nickmask:1; /* `text 'is a nick mask - colorify the nick */
+ unsigned int fullword:1; /* match `text' only for full words */
+ unsigned int regexp:1; /* `text' is a regular expression */
} HILIGHT_REC;
extern GSList *hilights;
diff --git a/src/irc/bot/botnet.h b/src/irc/bot/botnet.h
index e8b436d5..46489099 100644
--- a/src/irc/bot/botnet.h
+++ b/src/irc/bot/botnet.h
@@ -11,7 +11,7 @@ typedef struct _botnet_rec BOTNET_REC;
typedef struct {
char *name;
GSList *nicks; /* NICK_RECs */
- int chanop:1;
+ unsigned int chanop:1;
GSList *banlist;
GSList *ebanlist;
@@ -35,11 +35,11 @@ typedef struct {
BOTNET_REC *botnet;
void *link; /* NULL, BOT_UPLINK_REC or BOT_DOWNLINK_REC */
- int uplink:1; /* this is our uplink */
- int pass_ok:1; /* downlink's password was ok */
- int connected:1; /* bot is in this botnet now */
- int disconnect:1; /* just disconnecting this bot.. */
- int master:1; /* this bot is the bot network's current master */
+ unsigned int uplink:1; /* this is our uplink */
+ unsigned int pass_ok:1; /* downlink's password was ok */
+ unsigned int connected:1; /* bot is in this botnet now */
+ unsigned int disconnect:1; /* just disconnecting this bot.. */
+ unsigned int master:1; /* this bot is the bot network's current master */
char *nick; /* bot's unique nick in botnet */
int priority;
@@ -71,9 +71,9 @@ typedef struct {
} BOT_DOWNLINK_REC;
struct _botnet_rec {
- int connected:1;
- int autoconnect:1;
- int reconnect:1;
+ unsigned int connected:1;
+ unsigned int autoconnect:1;
+ unsigned int reconnect:1;
char *name; /* botnet name */
char *nick; /* our nick in botnet */
diff --git a/src/irc/core/channel-rejoin.h b/src/irc/core/channel-rejoin.h
index 9a2f4476..0b9cd151 100644
--- a/src/irc/core/channel-rejoin.h
+++ b/src/irc/core/channel-rejoin.h
@@ -4,7 +4,7 @@
typedef struct {
char *channel;
char *key;
- int joining:1;
+ unsigned int joining:1;
} REJOIN_REC;
void channel_rejoin_init(void);
diff --git a/src/irc/core/irc-servers.h b/src/irc/core/irc-servers.h
index c35fb0c8..ab6b63e9 100644
--- a/src/irc/core/irc-servers.h
+++ b/src/irc/core/irc-servers.h
@@ -38,15 +38,15 @@ typedef struct {
char *usermode; /* The whole mode string .. */
char *userhost; /* /USERHOST <nick> - set when joined to first channel */
- int nick_changing:1; /* We've sent nick change command to server */
- int whois_coming:1; /* Mostly just to display away message right.. */
- int whois_found:1; /* Did WHOIS return any entries? */
- int whowas_found:1; /* Did WHOWAS return any entries? */
-
- int emode_known:1; /* Server understands ban exceptions and invite lists */
- int no_multi_mode:1; /* Server doesn't understand MODE #chan1,#chan2,... */
- int no_multi_who:1; /* Server doesn't understand WHO #chan1,#chan2,... */
- int one_endofwho:1; /* /WHO #a,#b,.. replies only with one End of WHO message */
+ unsigned int nick_changing:1; /* We've sent nick change command to server */
+ unsigned int whois_coming:1; /* Mostly just to display away message right.. */
+ unsigned int whois_found:1; /* Did WHOIS return any entries? */
+ unsigned int whowas_found:1; /* Did WHOWAS return any entries? */
+
+ unsigned int emode_known:1; /* Server understands ban exceptions and invite lists */
+ unsigned int no_multi_mode:1; /* Server doesn't understand MODE #chan1,#chan2,... */
+ unsigned int no_multi_who:1; /* Server doesn't understand WHO #chan1,#chan2,... */
+ unsigned int one_endofwho:1; /* /WHO #a,#b,.. replies only with one End of WHO message */
int max_kicks_in_cmd; /* max. number of people to kick with one /KICK command */
int max_modes_in_cmd; /* max. number of mode changes in one /MODE command */
diff --git a/src/irc/core/netsplit.h b/src/irc/core/netsplit.h
index c801f168..ae5a9aa3 100644
--- a/src/irc/core/netsplit.h
+++ b/src/irc/core/netsplit.h
@@ -19,7 +19,7 @@ typedef struct {
char *address;
GSList *channels;
- int printed:1;
+ unsigned int printed:1;
time_t destroy;
} NETSPLIT_REC;
diff --git a/src/irc/dcc/dcc.h b/src/irc/dcc/dcc.h
index cfd5b932..693c676e 100644
--- a/src/irc/dcc/dcc.h
+++ b/src/irc/dcc/dcc.h
@@ -49,13 +49,13 @@ typedef struct DCC_REC {
int get_type; /* DCC get: what to do if file exists? */
- int fastsend:1; /* fastsending (just in case that global fastsend toggle changes while transferring..) */
- int waitforend:1; /* DCC fast send: file is sent, just wait for the replies from the other side */
- int gotalldata:1; /* DCC fast send: got all acks from the other end (needed to make sure the end of transfer works right) */
+ unsigned int fastsend:1; /* fastsending (just in case that global fastsend toggle changes while transferring..) */
+ unsigned int waitforend:1; /* DCC fast send: file is sent, just wait for the replies from the other side */
+ unsigned int gotalldata:1; /* DCC fast send: got all acks from the other end (needed to make sure the end of transfer works right) */
- int mirc_ctcp:1; /* DCC chat: Send CTCPs without the CTCP_MESSAGE prefix */
- int connection_lost:1; /* DCC chat: other side closed connection */
- int destroyed:1; /* We're about to destroy this DCC recond */
+ unsigned int mirc_ctcp:1; /* DCC chat: Send CTCPs without the CTCP_MESSAGE prefix */
+ unsigned int connection_lost:1; /* DCC chat: other side closed connection */
+ unsigned int destroyed:1; /* We're about to destroy this DCC recond */
/* read/write counter buffer */
char count_buf[4];
diff --git a/src/irc/notifylist/module.h b/src/irc/notifylist/module.h
index ec67bcbb..ddffd9a1 100644
--- a/src/irc/notifylist/module.h
+++ b/src/irc/notifylist/module.h
@@ -9,13 +9,13 @@ typedef struct {
char *user, *host, *realname, *awaymsg;
int idle_time;
- int host_ok:1; /* host matches the one in notifylist = this is the right person*/
- int away_ok:1; /* not away, or we don't care about it */
- int idle_ok:1; /* idle time is low enough, or we don't care about it */
+ unsigned int host_ok:1; /* host matches the one in notifylist = this is the right person*/
+ unsigned int away_ok:1; /* not away, or we don't care about it */
+ unsigned int idle_ok:1; /* idle time is low enough, or we don't care about it */
- int away:1; /* nick is away */
- int join_announced:1; /* join to IRC has been announced */
- int idle_changed:1; /* idle time is lower than in last check */
+ unsigned int away:1; /* nick is away */
+ unsigned int join_announced:1; /* join to IRC has been announced */
+ unsigned int idle_changed:1; /* idle time is lower than in last check */
time_t last_whois;
} NOTIFY_NICK_REC;
diff --git a/src/irc/notifylist/notifylist.h b/src/irc/notifylist/notifylist.h
index 65ce4d18..86a30bf4 100644
--- a/src/irc/notifylist/notifylist.h
+++ b/src/irc/notifylist/notifylist.h
@@ -6,7 +6,7 @@ typedef struct {
char **ircnets; /* if non-NULL, check only from these irc networks */
/* notify when AWAY status changes (uses /USERHOST) */
- int away_check:1;
+ unsigned int away_check:1;
/* notify when idle time is reset and it was bigger than this
(uses /WHOIS and PRIVMSG events) */
int idle_check_time;
diff --git a/src/irc/proxy/module.h b/src/irc/proxy/module.h
index ddf2f8fa..1defd0ce 100644
--- a/src/irc/proxy/module.h
+++ b/src/irc/proxy/module.h
@@ -24,8 +24,8 @@ typedef struct {
char *proxy_address;
LISTEN_REC *listen;
IRC_SERVER_REC *server;
- int pass_sent:1;
- int connected:1;
+ unsigned int pass_sent:1;
+ unsigned int connected:1;
} CLIENT_REC;
extern GSList *proxy_listens;