summaryrefslogtreecommitdiffstats
path: root/innbbsd/antisplam.h
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-01-08 15:54:00 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-01-08 15:54:00 +0800
commit271bcfc4e7d98aafb59b6e67399244f635ee74e8 (patch)
tree6c8c84e636581109db1de66d4036441c36b607c8 /innbbsd/antisplam.h
parent9b4d34a17c6061171456ae8e4b63dcd270f53091 (diff)
downloadpttbbs-271bcfc4e7d98aafb59b6e67399244f635ee74e8.tar
pttbbs-271bcfc4e7d98aafb59b6e67399244f635ee74e8.tar.gz
pttbbs-271bcfc4e7d98aafb59b6e67399244f635ee74e8.tar.bz2
pttbbs-271bcfc4e7d98aafb59b6e67399244f635ee74e8.tar.lz
pttbbs-271bcfc4e7d98aafb59b6e67399244f635ee74e8.tar.xz
pttbbs-271bcfc4e7d98aafb59b6e67399244f635ee74e8.tar.zst
pttbbs-271bcfc4e7d98aafb59b6e67399244f635ee74e8.zip
indent -i4
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1473 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'innbbsd/antisplam.h')
-rw-r--r--innbbsd/antisplam.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/innbbsd/antisplam.h b/innbbsd/antisplam.h
index f72f5348..dc55ef2f 100644
--- a/innbbsd/antisplam.h
+++ b/innbbsd/antisplam.h
@@ -1,24 +1,24 @@
#define char_lower(c) ((c >= 'A' && c <= 'Z') ? c|32 : c)
-#if 0 /* string.h , libc */
+#if 0 /* string.h , libc */
int
strcasestr(str, tag)
- char *str, *tag; /* tag : lower-case string */
+ char *str, *tag; /* tag : lower-case string */
{
- char buf[256];
+ char buf[256];
- str_lower(buf, str);
- return (int) strstr(buf, tag);
+ str_lower(buf, str);
+ return (int)strstr(buf, tag);
}
#endif
int
bad_subject(char *subject)
{
- char *badkey[] = {"µL½X","avcd","mp3",NULL};
- int i;
- for(i=0; badkey[i]; i++)
- if(strcasestr(subject, badkey[i])) return 1;
- return 0;
-}
-
+ char *badkey[] = {"µL½X", "avcd", "mp3", NULL};
+ int i;
+ for (i = 0; badkey[i]; i++)
+ if (strcasestr(subject, badkey[i]))
+ return 1;
+ return 0;
+}