From 200c31914f7abaeb08d08eac45473585bf6f453b Mon Sep 17 00:00:00 2001 From: victor Date: Tue, 28 Sep 2004 08:55:21 +0000 Subject: a little bit modification of crosspost policy git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2213 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/record.c | 29 +++++++++++++---------------- 1 file changed, 13 insertions(+), 16 deletions(-) (limited to 'mbbsd/record.c') diff --git a/mbbsd/record.c b/mbbsd/record.c index 616c8425..1ff65353 100644 --- a/mbbsd/record.c +++ b/mbbsd/record.c @@ -137,22 +137,19 @@ substitute_ref_record(char *direct, fileheader_t * fhdr, int ent) /* rocker.011018: 串接模式用reference增進效率 */ if (!(fhdr->filemode & FILE_BOTTOM) && (fhdr->money & FHR_REFERENCE) && - (num = fhdr->money & ~FHR_REFERENCE)){ - setdirpath(genbuf, direct, ".DIR"); - get_record(genbuf, &hdr, sizeof(hdr), num); - if (strcmp(hdr.filename, fhdr->filename)) - { - if((num = getindex(genbuf, fhdr, num))>0) - { - substitute_record(genbuf, fhdr, sizeof(*fhdr), num); - } - } - else if(num>0) - { - fhdr->money = hdr.money; - substitute_record(genbuf, fhdr, sizeof(*fhdr), num); - } - fhdr->money = FHR_REFERENCE | num ; // Ptt: update now! + (num = fhdr->money & ~FHR_REFERENCE)){ + setdirpath(genbuf, direct, ".DIR"); + get_record(genbuf, &hdr, sizeof(hdr), num); + if (strcmp(hdr.filename, fhdr->filename)) { + if((num = getindex(genbuf, fhdr, num))>0) { + substitute_record(genbuf, fhdr, sizeof(*fhdr), num); + } + } + else if(num>0) { + fhdr->money = hdr.money; + substitute_record(genbuf, fhdr, sizeof(*fhdr), num); + } + fhdr->money = FHR_REFERENCE | num ; // Ptt: update now! } substitute_record(direct, fhdr, sizeof(*fhdr), ent); return num; -- cgit v1.2.3