summaryrefslogtreecommitdiffstats
path: root/mbbsd/bbs.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-01-03 21:09:17 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-01-03 21:09:17 +0800
commit8f9dc9a65dc9b09b96c81b86156a067d1e1ea6ba (patch)
tree7ce60f78181831648ececc658165b150c04cf7fb /mbbsd/bbs.c
parent74ceac39794d1f3744a4c14e0e48d787d538b5d0 (diff)
downloadpttbbs-8f9dc9a65dc9b09b96c81b86156a067d1e1ea6ba.tar
pttbbs-8f9dc9a65dc9b09b96c81b86156a067d1e1ea6ba.tar.gz
pttbbs-8f9dc9a65dc9b09b96c81b86156a067d1e1ea6ba.tar.bz2
pttbbs-8f9dc9a65dc9b09b96c81b86156a067d1e1ea6ba.tar.lz
pttbbs-8f9dc9a65dc9b09b96c81b86156a067d1e1ea6ba.tar.xz
pttbbs-8f9dc9a65dc9b09b96c81b86156a067d1e1ea6ba.tar.zst
pttbbs-8f9dc9a65dc9b09b96c81b86156a067d1e1ea6ba.zip
- pmore: move ChessReplay (z) to outside.
- bbs: use 'now' to prevent time() system call. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3779 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/bbs.c')
-rw-r--r--mbbsd/bbs.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c
index f8b500dc..90cd07c6 100644
--- a/mbbsd/bbs.c
+++ b/mbbsd/bbs.c
@@ -1374,14 +1374,13 @@ edit_post(int ent, fileheader_t * fhdr, const char *direct)
if (strcmp(fhdr->owner, cuser.userid) != EQUSTR)
{
- time4_t t = time4(NULL);
if (!HasUserPerm(PERM_SYSOP))
return DONOTHING;
// admin edit!
log_filef("log/security", LOG_CREAT,
"%d %24.24s %d %s admin edit (board) file=%s\n",
- t, ctime4(&t), getpid(), cuser.userid, fpath);
+ (int)now, ctime4(&now), getpid(), cuser.userid, fpath);
}
# ifdef GLOBAL_BBSMOVIE