diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-01-25 23:01:00 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-01-25 23:01:00 +0800 |
commit | 949977dfed6a77c6c0daaeae498a9919dd22fdee (patch) | |
tree | 20ced334edb22774c74a355076fab66171067335 /innbbsd | |
parent | d56dce6834668e0fe47c8cd85e33d1128a696487 (diff) | |
download | pttbbs-949977dfed6a77c6c0daaeae498a9919dd22fdee.tar pttbbs-949977dfed6a77c6c0daaeae498a9919dd22fdee.tar.gz pttbbs-949977dfed6a77c6c0daaeae498a9919dd22fdee.tar.bz2 pttbbs-949977dfed6a77c6c0daaeae498a9919dd22fdee.tar.lz pttbbs-949977dfed6a77c6c0daaeae498a9919dd22fdee.tar.xz pttbbs-949977dfed6a77c6c0daaeae498a9919dd22fdee.tar.zst pttbbs-949977dfed6a77c6c0daaeae498a9919dd22fdee.zip |
for x86-64
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2434 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'innbbsd')
-rw-r--r-- | innbbsd/antisplam.h | 1 | ||||
-rw-r--r-- | 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); } |