aboutsummaryrefslogtreecommitdiff
path: root/src/irc.c
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2026-03-31 04:10:12 -0400
committerB. Watson <urchlay@slackware.uk>2026-03-31 04:10:12 -0400
commited04dd7fb0c859870e708da809b002508f959b1c (patch)
tree795176851a8010f6284c723e56c6471b78531513 /src/irc.c
parent5a1d4762bc8fdd39a014bd5f469089f944bc5944 (diff)
downloadfujinet-chat-ed04dd7fb0c859870e708da809b002508f959b1c.tar.gz
Replace strcmp() and friends, tolower(), with custom (small) routines. now at 5129 bytes free.
Diffstat (limited to 'src/irc.c')
-rw-r--r--src/irc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/irc.c b/src/irc.c
index b4d9f43..0ca0b01 100644
--- a/src/irc.c
+++ b/src/irc.c
@@ -16,6 +16,7 @@
#include "complete.h"
#include "keytab.h"
#include "kgetc.h"
+#include "streq.h"
#ifndef VERSION
#define VERSION "?????"
@@ -514,7 +515,7 @@ static void invalid_msg(char type) {
}
#endif
-static char cmd_is(const char *cmd) {
+static char cmd_is(char *cmd) {
return streq_i(msg_cmd, cmd);
}
@@ -947,7 +948,7 @@ void start_keystroke(char c) {
return;
}
- switch(tolower(c)) {
+ switch(lcase(c)) {
case XCH_UP:
case '-':
scrollback();