summaryrefslogtreecommitdiff
path: root/src/irc
diff options
context:
space:
mode:
authorLemonBoy <thatlemon@gmail.com>2017-10-23 20:08:19 +0200
committerLemonBoy <thatlemon@gmail.com>2018-01-07 12:36:20 +0100
commit74409aa85071390a3969fffa21c08a6736efe314 (patch)
tree02b14447da30cf17679c4bee6c44ab2d533454c4 /src/irc
parentf683e81880ac4408693582df3ec11d640684c78d (diff)
downloadirssi-74409aa85071390a3969fffa21c08a6736efe314.zip
Miscellaneous fixes
Stylistic stuff, please ignore.
Diffstat (limited to 'src/irc')
-rw-r--r--src/irc/core/irc-cap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/irc/core/irc-cap.c b/src/irc/core/irc-cap.c
index 46276243..9af55130 100644
--- a/src/irc/core/irc-cap.c
+++ b/src/irc/core/irc-cap.c
@@ -86,14 +86,14 @@ static gboolean parse_cap_name(char *name, char **key, char **val)
const char *eq = strchr(name, '=');
/* KEY only value */
- if (!eq) {
+ if (eq == NULL) {
*key = g_strdup(name);
*val = NULL;
return TRUE;
}
/* Some values are in a KEY=VALUE form, parse them */
else if (eq[1] != '\0') {
- *key = g_strndup(name, (int)(eq - name));
+ *key = g_strndup(name, (gsize)(eq - name));
*val = g_strdup(eq + 1);
return TRUE;
}