aboutsummaryrefslogtreecommitdiff
path: root/src/complete.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/complete.c')
-rw-r--r--src/complete.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/complete.c b/src/complete.c
index 108bc90..e76def1 100644
--- a/src/complete.c
+++ b/src/complete.c
@@ -1,10 +1,10 @@
#include <atari.h>
#include <string.h>
-#include <ctype.h>
#include "addrs.h"
#include "edbox.h"
#include "screen.h"
#include "irc.h"
+#include "streq.h"
#define COMP_S1 1
#define COMP_PM 2
@@ -24,10 +24,10 @@ char (*add_to)[25] = comp_pm_nicks;
static char pm_nick_pos = 0; /* insertion point for _add() */
static void add_list(const char *n) {
- int i;
+ char i;
for(i = 0; i < 25; i++)
- if(strncmp(n, add_to[i], 24) == 0)
+ if(strneq_i(n, add_to[i], 24))
return; /* we already got this one */
strncpy(add_to[pm_nick_pos], n, 24);
@@ -46,7 +46,7 @@ void comp_add_pm_chan(const char *n) {
}
char match(const char *p, const char *q) {
- int len;
+ char len;
while(*p == '#') p++;
while(*q == '#') q++;
@@ -55,7 +55,7 @@ char match(const char *p, const char *q) {
if(!len) return 0;
while(len--) {
- if(tolower(*p) != tolower(*q))
+ if(lcase(*p) != lcase(*q))
return 0;
p++, q++;
}