summaryrefslogtreecommitdiff
path: root/src/kike.c
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2014-07-19 17:44:49 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2014-07-19 17:44:49 +0200
commit027333e56aeea20c486702ecfb9571ca45fd14f6 (patch)
treef05033ff39575abf4010392920caa36b58b3b734 /src/kike.c
parent43d34d2473917521376f7d56126779f941205105 (diff)
downloadxK-027333e56aeea20c486702ecfb9571ca45fd14f6.tar.gz
xK-027333e56aeea20c486702ecfb9571ca45fd14f6.tar.xz
xK-027333e56aeea20c486702ecfb9571ca45fd14f6.zip
Fix some compiler warnings
`-Weverything' seems to have found a few problems. Also enabled clang sanitizers by default.
Diffstat (limited to 'src/kike.c')
-rw-r--r--src/kike.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/kike.c b/src/kike.c
index 1ca6b0c..1ae4cee 100644
--- a/src/kike.c
+++ b/src/kike.c
@@ -222,11 +222,11 @@ struct client
struct str read_buffer; ///< Unprocessed input
struct str write_buffer; ///< Output yet to be sent out
- unsigned initialized : 1; ///< Has any data been received yet?
- unsigned registered : 1; ///< The user has registered
+ bool initialized; ///< Has any data been received yet?
+ bool registered; ///< The user has registered
- unsigned ssl_rx_want_tx : 1; ///< SSL_read() wants to write
- unsigned ssl_tx_want_rx : 1; ///< SSL_write() wants to read
+ bool ssl_rx_want_tx; ///< SSL_read() wants to write
+ bool ssl_tx_want_rx; ///< SSL_write() wants to read
SSL *ssl; ///< SSL connection
char *nickname; ///< IRC nickname (main identifier)