From 62bc73af704141f8c18c9bbc6ff7ee2d69459bd6 Mon Sep 17 00:00:00 2001 From: piaip Date: Sun, 23 Feb 2014 07:14:38 +0000 Subject: Prevent data structure difference by #ifdefs. NOTE You may need to recompile and restart BBS after applying this commit, if you don't have OUTTA_TIMER in pttbbs.conf. git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5939 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- pttbbs/UPDATING | 5 +++++ pttbbs/include/pttstruct.h | 2 -- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/pttbbs/UPDATING b/pttbbs/UPDATING index 96cfcbb2..766d0975 100644 --- a/pttbbs/UPDATING +++ b/pttbbs/UPDATING @@ -23,6 +23,11 @@ https://opensvn.csie.org/traccgi/pttbbs/changeset/2273 make r4871_uflag ----------------------------------------------------------------------------- +r5939: [shm] +為了減少昇級 BBS 時資料結構不相容的情形,SHM 裡的 "now" 現在變為一直都有 +(即使沒開 OUTTA_TIMER 選項)。如果您的 BBS 沒開 OUTTA_TIMER 請記得打開後 +重編 + 重跑,或是手動把 now 移掉。 + r5885: [expire] util/expire 格式修改,不再看 days/minp. 為避免誤砍,設定檔也同時改名為 expire2.conf。請自行調整。 diff --git a/pttbbs/include/pttstruct.h b/pttbbs/include/pttstruct.h index ffe914cf..90f34a73 100644 --- a/pttbbs/include/pttstruct.h +++ b/pttbbs/include/pttstruct.h @@ -574,9 +574,7 @@ typedef struct { int dymaxactive; /* 動態設定最大人數上限 */ int toomanyusers; /* 超過人數上限不給進的個數 */ int noonlineuser; /* 站上使用者不高亮度顯示 */ -#ifdef OUTTA_TIMER time4_t now; -#endif int nWelcomes; int shutdown; /* shutdown flag */ -- cgit v1.2.3