summaryrefslogtreecommitdiffstats
path: root/mbbsd/bbs.c
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-01-24 22:06:48 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-01-24 22:06:48 +0800
commit9084d9602e8725a6fb832d4396c12ddd7bb2b7c7 (patch)
tree78d04dab42a50e73845c8e31eb877001fb8379cd /mbbsd/bbs.c
parentf6324fdcb56a70815842cc39cb1826ce6b82148c (diff)
downloadpttbbs-9084d9602e8725a6fb832d4396c12ddd7bb2b7c7.tar
pttbbs-9084d9602e8725a6fb832d4396c12ddd7bb2b7c7.tar.gz
pttbbs-9084d9602e8725a6fb832d4396c12ddd7bb2b7c7.tar.bz2
pttbbs-9084d9602e8725a6fb832d4396c12ddd7bb2b7c7.tar.lz
pttbbs-9084d9602e8725a6fb832d4396c12ddd7bb2b7c7.tar.xz
pttbbs-9084d9602e8725a6fb832d4396c12ddd7bb2b7c7.tar.zst
pttbbs-9084d9602e8725a6fb832d4396c12ddd7bb2b7c7.zip
use time4_t(uint32_t) instead of time_t for x86-64 arch.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2426 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/bbs.c')
-rw-r--r--mbbsd/bbs.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c
index 361738e3..1381e06b 100644
--- a/mbbsd/bbs.c
+++ b/mbbsd/bbs.c
@@ -35,7 +35,7 @@ anticrosspost(void)
{
log_file("etc/illegal_money", LOG_CREAT | LOG_VF,
"\033[1;33;46m%s \033[37;45mcross post 文章 \033[37m %s\033[m\n",
- cuser.userid, ctime(&now));
+ cuser.userid, Cdate(&now));
post_violatelaw(cuser.userid, "Ptt系統警察", "Cross-post", "罰單處份");
cuser.userlevel |= PERM_VIOLATELAW;
@@ -107,7 +107,7 @@ save_violatelaw(void)
* void make_blist() { CreateNameList(); apply_boards(g_board_names); }
*/
-static time_t *board_note_time;
+static time4_t *board_note_time;
void
set_board(void)
@@ -425,9 +425,9 @@ do_unanonymous_post(char *fpath)
*/
#ifdef NO_WATER_POST
#ifndef DEBUG
-static time_t last_post_time = 0;
+static time4_t last_post_time = 0;
#endif
-static time_t water_counts = 0;
+static time4_t water_counts = 0;
#endif
void
@@ -1665,12 +1665,12 @@ do_bid(int ent, fileheader_t * fhdr, boardheader_t *bp,
static int
recommend(int ent, fileheader_t * fhdr, char *direct)
{
- struct tm *ptime = localtime(&now);
+ struct tm *ptime = localtime4(&now);
char buf[200], path[200],
*ctype[3] = {"37m推","31m噓","31m→"};
- int type = 0;
+ int type = 0;
boardheader_t *bp;
- static time_t lastrecommend = 0;
+ static time4_t lastrecommend = 0;
bp = getbcache(currbid);
if( bp->brdattr & BRD_NORECOMMEND ){
@@ -2638,7 +2638,7 @@ Read(void)
int stat0 = currstat, tmpbid = currutmp->brc_id;
char buf[40];
#ifdef LOG_BOARD
- time_t usetime = now;
+ time4_t usetime = now;
#endif
if ( !currboard[0] )
@@ -2687,12 +2687,12 @@ ReadSelect(void)
#ifdef LOG_BOARD
static void
-log_board(char *mode, time_t usetime)
+log_board(char *mode, time4_t usetime)
{
if (usetime > 30) {
log_file(FN_USEBOARD, LOG_CREAT | LOG_VF,
"USE %-20.20s Stay: %5ld (%s) %s\n",
- mode, usetime, cuser.userid, ctime(&now));
+ mode, usetime, cuser.userid, Cdate(&now));
}
}
#endif