summaryrefslogtreecommitdiffstats
path: root/mbbsd/bbs.c
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-07-30 00:25:40 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-07-30 00:25:40 +0800
commit8059d1525a1b5bfa7192a68d2fe12242e47f0145 (patch)
tree077e1384fc174710ac1b596cd3500e40bed09478 /mbbsd/bbs.c
parenta035b16261c3df5adbf6520ac8c848064243dbc7 (diff)
downloadpttbbs-8059d1525a1b5bfa7192a68d2fe12242e47f0145.tar
pttbbs-8059d1525a1b5bfa7192a68d2fe12242e47f0145.tar.gz
pttbbs-8059d1525a1b5bfa7192a68d2fe12242e47f0145.tar.bz2
pttbbs-8059d1525a1b5bfa7192a68d2fe12242e47f0145.tar.lz
pttbbs-8059d1525a1b5bfa7192a68d2fe12242e47f0145.tar.xz
pttbbs-8059d1525a1b5bfa7192a68d2fe12242e47f0145.tar.zst
pttbbs-8059d1525a1b5bfa7192a68d2fe12242e47f0145.zip
use int instead of long
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2151 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/bbs.c')
-rw-r--r--mbbsd/bbs.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c
index 291a0964..df6d86ab 100644
--- a/mbbsd/bbs.c
+++ b/mbbsd/bbs.c
@@ -611,10 +611,10 @@ do_general(int isbid)
setbpath(fpath, currboard);
stampfile(fpath, &postfile);
if(isbid) {
- aborted = (int)fopen(fpath, "w");
- if(aborted) {
- print_bidinfo((FILE*)aborted, bidinfo);
- fclose((FILE*)aborted);
+ FILE *fp;
+ if( (fp = fopen(fpath, "w")) != NULL ){
+ print_bidinfo(fp, bidinfo);
+ fclose(fp);
}
}
else if(posttype!=-1 && ((1<<posttype) & bp->posttype_f)) {