diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2024-05-09 13:43:48 +0200 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2024-05-09 13:43:48 +0200 |
commit | c65fcb7ff6d73478b83816e8b8cd55a6e09d1a1b (patch) | |
tree | 86bdfee4adcfa1ddaeb6b1b8232ffa48fc6dc117 /FICS/adminproc.c | |
parent | 8dedd768c6c200923e9a3cf325e63182cd14cd7d (diff) |
Fixed sign compare
Diffstat (limited to 'FICS/adminproc.c')
-rw-r--r-- | FICS/adminproc.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/FICS/adminproc.c b/FICS/adminproc.c index 9bc570d..8cbd95b 100644 --- a/FICS/adminproc.c +++ b/FICS/adminproc.c @@ -424,11 +424,9 @@ com_anews(int p, param_list param) PUBLIC int strcmpwild(char *mainstr, char *searchstr) { - int i; - if (strlen(mainstr) < strlen(searchstr)) return 1; - for (i = 0; i < strlen(mainstr); i++) { + for (size_t i = 0; i < strlen(mainstr); i++) { if (searchstr[i] == '*') return 0; if (mainstr[i] != searchstr[i]) |