summary refs log tree commit diff
path: root/irc.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-02-15 22:19:55 -0500
committerJune McEnroe <june@causal.agency>2020-02-15 22:19:55 -0500
commit700b5d587015faa396b1149525b084960d6524c3 (patch)
tree7452916a9e52a22f480e35ac4ebc401535efd81b /irc.c
parentStill add nick without prefixes to complete (diff)
downloadcatgirl-700b5d587015faa396b1149525b084960d6524c3.tar.gz
catgirl-700b5d587015faa396b1149525b084960d6524c3.zip
Replace small integers in size_t with uint
Diffstat (limited to '')
-rw-r--r--irc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/irc.c b/irc.c
index dd36f10..704caa6 100644
--- a/irc.c
+++ b/irc.c
@@ -220,7 +220,7 @@ static struct Message parse(char *line) {
 		while (tags) {
 			char *tag = strsep(&tags, ";");
 			char *key = strsep(&tag, "=");
-			for (size_t i = 0; i < TagCap; ++i) {
+			for (uint i = 0; i < TagCap; ++i) {
 				if (strcmp(key, TagNames[i])) continue;
 				unescape(tag);
 				msg.tags[i] = tag;
@@ -237,7 +237,7 @@ static struct Message parse(char *line) {
 	}
 
 	msg.cmd = strsep(&line, " ");
-	for (size_t i = 0; line && i < ParamCap; ++i) {
+	for (uint i = 0; line && i < ParamCap; ++i) {
 		if (line[0] == ':') {
 			msg.params[i] = &line[1];
 			break;
title='2019-02-11 20:00:25 -0500'>2019-02-11Local file supportdestruc7i0n 2018-11-11Let's make this usable again!destruc7i0n 2018-02-23Allow configurable discord formatArcensoth 2018-02-23Revert example tellraw format to mimic the originalArcensoth 2018-02-23Update readme with new tellraw config optionArcensoth 2018-02-23Allow configurable tellraw formatArcensoth 2018-02-23Allow config file to be passed as a parameterArcensothll of UIJune McEnroe 2018-08-06Rename line editing functionsJune McEnroe 2018-08-05Initialize all possible color pairsJune McEnroe 2018-08-05Refactor color initializationJune McEnroe 2018-08-05Add ^L redrawJune McEnroe 2018-08-05Use 16 colors if availableJune McEnroe 2018-08-05Limit parsed colors to number of mIRC colorsJune McEnroe 2018-08-04Show source link on exitJune McEnroe 2018-08-04Implement line editing, scrollingJune McEnroe 2018-08-04Handle /topicJune McEnroe