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/more.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mbbsd/more.c') diff --git a/mbbsd/more.c b/mbbsd/more.c index f8d32c61..87d71fe9 100644 --- a/mbbsd/more.c +++ b/mbbsd/more.c @@ -1,4 +1,4 @@ -/* $Id: more.c,v 1.12 2002/04/28 19:35:29 in2 Exp $ */ +/* $Id: more.c,v 1.13 2002/05/13 03:20:04 ptt Exp $ */ #include #include #include @@ -24,7 +24,7 @@ extern char *str_post1; extern char *str_post2; extern char *msg_seperator; extern char reset_color[]; - +extern time_t now; #define MORE_BUFSIZE 4096 #define MORE_WINSIZE 4096 #define STR_ANSICODE "[0123456789;," @@ -780,7 +780,7 @@ static int more_web(char *fpath, int promptend) { #ifdef LOCAL_PROXY /* ¥ý§ä local disk ªº proxy */ - time(&dtime); + dtime=now; sprintf(userfile,"hproxy/%s%s",hostname,file); if(dashf(userfile) && (dtime - dasht(userfile)) < HPROXYDAY * 24 * 60 && more(userfile,promptend)) { -- cgit v1.2.3