aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--FICS/adminproc.c26
1 files changed, 14 insertions, 12 deletions
diff --git a/FICS/adminproc.c b/FICS/adminproc.c
index f03ad7f..9bc570d 100644
--- a/FICS/adminproc.c
+++ b/FICS/adminproc.c
@@ -421,19 +421,21 @@ com_anews(int p, param_list param)
return COM_OK;
}
-PUBLIC int strcmpwild(char *mainstr, char *searchstr)
+PUBLIC int
+strcmpwild(char *mainstr, char *searchstr)
{
- int i;
-
- if (strlen(mainstr) < strlen(searchstr))
- return 1;
- for (i = 0; i < strlen(mainstr); i++) {
- if (searchstr[i] == '*')
- return 0;
- if (mainstr[i] != searchstr[i])
- return 1;
- }
- return 0;
+ int i;
+
+ if (strlen(mainstr) < strlen(searchstr))
+ return 1;
+ for (i = 0; i < strlen(mainstr); i++) {
+ if (searchstr[i] == '*')
+ return 0;
+ if (mainstr[i] != searchstr[i])
+ return 1;
+ }
+
+ return 0;
}
/*