summaryrefslogtreecommitdiffstats
path: root/innbbsd
diff options
context:
space:
mode:
Diffstat (limited to 'innbbsd')
-rw-r--r--innbbsd/antisplam.h1
-rw-r--r--innbbsd/bbslink.c18
2 files changed, 10 insertions, 9 deletions
diff --git a/innbbsd/antisplam.h b/innbbsd/antisplam.h
index dc55ef2f..0832533f 100644
--- a/innbbsd/antisplam.h
+++ b/innbbsd/antisplam.h
@@ -1,3 +1,4 @@
+#include "bbs.h"
#define char_lower(c) ((c >= 'A' && c <= 'Z') ? c|32 : c)
#if 0 /* string.h , libc */
diff --git a/innbbsd/bbslink.c b/innbbsd/bbslink.c
index 4fb1931f..1222db33 100644
--- a/innbbsd/bbslink.c
+++ b/innbbsd/bbslink.c
@@ -44,7 +44,7 @@ typedef struct my_out_bntp {
} my_out_bntp;
struct my_out_bntp out_bntp[MAX_OUTGO_POST];
-int outgo_post = 0;
+int innbbsd_outgo_post = 0;
typedef struct Over_t {
time_t mtime;
@@ -146,7 +146,7 @@ is_outgo_post(board, filename, userid, nickname, subject)
{
int mypost;
- for (mypost = 0; mypost < outgo_post; mypost++) {
+ for (mypost = 0; mypost < innbbsd_outgo_post; mypost++) {
if (!strcmp(out_bntp[mypost].filename, filename))
if (!strcmp(out_bntp[mypost].userid, userid))
if (!strcmp(out_bntp[mypost].board, board))
@@ -1595,13 +1595,13 @@ bntplink(argc, argv)
if (bad_subject(subject))
continue;
- if (outgo_post < MAX_OUTGO_POST) {
- out_bntp[outgo_post].board = board;
- out_bntp[outgo_post].filename = filename;
- out_bntp[outgo_post].userid = userid;
- out_bntp[outgo_post].nickname = nickname;
- out_bntp[outgo_post].subject = subject;
- outgo_post++;
+ if (innbbsd_outgo_post < MAX_OUTGO_POST) {
+ out_bntp[innbbsd_outgo_post].board = board;
+ out_bntp[innbbsd_outgo_post].filename = filename;
+ out_bntp[innbbsd_outgo_post].userid = userid;
+ out_bntp[innbbsd_outgo_post].nickname = nickname;
+ out_bntp[innbbsd_outgo_post].subject = subject;
+ innbbsd_outgo_post++;
}
process_article(board, filename, userid, nickname, subject);
}