diff options
author | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-12-03 09:08:29 +0800 |
---|---|---|
committer | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-12-03 09:08:29 +0800 |
commit | 3655862b3fa51afaf5c01a2cfea600169f3cd609 (patch) | |
tree | 7e8aa3d8e50b25920d421f62d59eae06837b26f6 /mbbsd/record.c | |
parent | 5cefa8237ce2a2c2ad86d956a086c386fb013364 (diff) | |
download | pttbbs-3655862b3fa51afaf5c01a2cfea600169f3cd609.tar pttbbs-3655862b3fa51afaf5c01a2cfea600169f3cd609.tar.gz pttbbs-3655862b3fa51afaf5c01a2cfea600169f3cd609.tar.bz2 pttbbs-3655862b3fa51afaf5c01a2cfea600169f3cd609.tar.lz pttbbs-3655862b3fa51afaf5c01a2cfea600169f3cd609.tar.xz pttbbs-3655862b3fa51afaf5c01a2cfea600169f3cd609.tar.zst pttbbs-3655862b3fa51afaf5c01a2cfea600169f3cd609.zip |
changed money in fileheader_t into union
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2363 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/record.c')
-rw-r--r-- | mbbsd/record.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/mbbsd/record.c b/mbbsd/record.c index 1ff65353..110ddd41 100644 --- a/mbbsd/record.c +++ b/mbbsd/record.c @@ -136,8 +136,8 @@ substitute_ref_record(char *direct, fileheader_t * fhdr, int ent) int num = 0; /* rocker.011018: 串接模式用reference增進效率 */ - if (!(fhdr->filemode & FILE_BOTTOM) && (fhdr->money & FHR_REFERENCE) && - (num = fhdr->money & ~FHR_REFERENCE)){ + if (!(fhdr->filemode & FILE_BOTTOM) && (fhdr->multi.refer.flag) && + (num = fhdr->multi.refer.ref)){ setdirpath(genbuf, direct, ".DIR"); get_record(genbuf, &hdr, sizeof(hdr), num); if (strcmp(hdr.filename, fhdr->filename)) { @@ -146,10 +146,11 @@ substitute_ref_record(char *direct, fileheader_t * fhdr, int ent) } } else if(num>0) { - fhdr->money = hdr.money; + fhdr->multi.money = hdr.multi.money; substitute_record(genbuf, fhdr, sizeof(*fhdr), num); } - fhdr->money = FHR_REFERENCE | num ; // Ptt: update now! + fhdr->multi.refer.flag = 1; + fhdr->multi.refer.ref = num; // Ptt: update now! } substitute_record(direct, fhdr, sizeof(*fhdr), ent); return num; @@ -175,7 +176,7 @@ getindex(char *direct, fileheader_t *fh_o, int end) else if(s == stamp) { close(fd); - fh_o->money = fh.money; + fh_o->multi.money = fh.multi.money; return i; } else begin = i; |