From 6a428fb60d8ec6092d428b2e0f869a31f4890dc7 Mon Sep 17 00:00:00 2001 From: ptt Date: Mon, 13 May 2002 03:20:04 +0000 Subject: replace time(NULL) by now git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@163 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/xyz.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mbbsd/xyz.c') diff --git a/mbbsd/xyz.c b/mbbsd/xyz.c index 1cac394a..daa0116e 100644 --- a/mbbsd/xyz.c +++ b/mbbsd/xyz.c @@ -1,4 +1,4 @@ -/* $Id: xyz.c,v 1.4 2002/05/06 13:34:11 ptt Exp $ */ +/* $Id: xyz.c,v 1.5 2002/05/13 03:20:04 ptt Exp $ */ #include #include #include @@ -22,7 +22,7 @@ extern char fromhost[]; extern userinfo_t *currutmp; extern int curr_idle_timeout; extern userec_t cuser; - +extern time_t now; /* 各種統計及相關資訊列表 */ /* Ptt90年度大學聯招查榜系統 */ int x_90() { @@ -194,7 +194,7 @@ int note() { strcpy(myitem.userid, cuser.userid); strncpy(myitem.username, cuser.username, 18); myitem.username[18] = '\0'; - time(&(myitem.date)); + myitem.date=now; /* begin load file */ if((foo = fopen(".note", "a")) == NULL) -- cgit v1.2.3