diff options
| author | B. Watson <urchlay@slackware.uk> | 2026-03-31 04:10:12 -0400 |
|---|---|---|
| committer | B. Watson <urchlay@slackware.uk> | 2026-03-31 04:10:12 -0400 |
| commit | ed04dd7fb0c859870e708da809b002508f959b1c (patch) | |
| tree | 795176851a8010f6284c723e56c6471b78531513 /src/irc.c | |
| parent | 5a1d4762bc8fdd39a014bd5f469089f944bc5944 (diff) | |
| download | fujinet-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.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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(); |
