diff options
author | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-03-28 02:58:51 +0800 |
---|---|---|
committer | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-03-28 02:58:51 +0800 |
commit | 97aa33dddca788f751a2a53164e2b69f9ea122f8 (patch) | |
tree | cd0a94327d412caccec9ccbb453aabcf900f6f44 /mbbsd/bbs.c | |
parent | eab7a66c8e9cf65bd6f4dd39f1b550b76b8c0ce7 (diff) | |
download | pttbbs-97aa33dddca788f751a2a53164e2b69f9ea122f8.tar pttbbs-97aa33dddca788f751a2a53164e2b69f9ea122f8.tar.gz pttbbs-97aa33dddca788f751a2a53164e2b69f9ea122f8.tar.bz2 pttbbs-97aa33dddca788f751a2a53164e2b69f9ea122f8.tar.lz pttbbs-97aa33dddca788f751a2a53164e2b69f9ea122f8.tar.xz pttbbs-97aa33dddca788f751a2a53164e2b69f9ea122f8.tar.zst pttbbs-97aa33dddca788f751a2a53164e2b69f9ea122f8.zip |
simplify record.c
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1616 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/bbs.c')
-rw-r--r-- | mbbsd/bbs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c index ac8993b8..d2f15454 100644 --- a/mbbsd/bbs.c +++ b/mbbsd/bbs.c @@ -960,7 +960,7 @@ edit_post(int ent, fileheader_t * fhdr, char *direct) /* rocker.011018: 這裡是不是該檢查一下修改文章後的money和原有的比較? */ if (vedit(genbuf, 0, NULL) != -1) { - lock_substitute_record(direct, fhdr, sizeof(*fhdr), ent, LOCK_EX); + substitute_record(direct, fhdr, sizeof(*fhdr), ent); setbpath(fpath, currboard); stampfile(fpath, &postfile); strlcpy(genbuf, fhdr->filename, sizeof(genbuf)); @@ -997,7 +997,7 @@ edit_post(int ent, fileheader_t * fhdr, char *direct) strlcpy(fhdr->filename, postfile.filename, sizeof(fhdr->filename)); strlcpy(fhdr->title, save_title, sizeof(fhdr->title)); brc_addlist(postfile.filename); - lock_substitute_record(direct, fhdr, sizeof(*fhdr), ent, LOCK_UN); + substitute_record(direct, fhdr, sizeof(*fhdr), ent); /* rocker.011018: 順便更新一下cache */ touchdircache(currbid); |