summaryrefslogtreecommitdiffstats
path: root/mbbsd/record.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd/record.c')
-rw-r--r--mbbsd/record.c29
1 files changed, 13 insertions, 16 deletions
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;