From 949977dfed6a77c6c0daaeae498a9919dd22fdee Mon Sep 17 00:00:00 2001 From: in2 Date: Tue, 25 Jan 2005 15:01:00 +0000 Subject: for x86-64 git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2434 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- innbbsd/antisplam.h | 1 + innbbsd/bbslink.c | 18 +++++++++--------- 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); } -- cgit v1.2.3