diff options
author | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-05-13 11:20:04 +0800 |
---|---|---|
committer | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-05-13 11:20:04 +0800 |
commit | 6a428fb60d8ec6092d428b2e0f869a31f4890dc7 (patch) | |
tree | a0671ea2dc0168a9cb5625f867d553f6d0441efc /mbbsd/voteboard.c | |
parent | 438c456b95eec0e5ac662ca3cf2386dff2c44bc7 (diff) | |
download | pttbbs-6a428fb60d8ec6092d428b2e0f869a31f4890dc7.tar pttbbs-6a428fb60d8ec6092d428b2e0f869a31f4890dc7.tar.gz pttbbs-6a428fb60d8ec6092d428b2e0f869a31f4890dc7.tar.bz2 pttbbs-6a428fb60d8ec6092d428b2e0f869a31f4890dc7.tar.lz pttbbs-6a428fb60d8ec6092d428b2e0f869a31f4890dc7.tar.xz pttbbs-6a428fb60d8ec6092d428b2e0f869a31f4890dc7.tar.zst pttbbs-6a428fb60d8ec6092d428b2e0f869a31f4890dc7.zip |
replace time(NULL) by now
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@163 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/voteboard.c')
-rw-r--r-- | mbbsd/voteboard.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mbbsd/voteboard.c b/mbbsd/voteboard.c index dbc23412..8b92adb7 100644 --- a/mbbsd/voteboard.c +++ b/mbbsd/voteboard.c @@ -1,4 +1,4 @@ -/* $Id: voteboard.c,v 1.4 2002/04/28 19:35:29 in2 Exp $ */ +/* $Id: voteboard.c,v 1.5 2002/05/13 03:20:04 ptt Exp $ */ #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -21,6 +21,7 @@ extern int currbid; extern boardheader_t *bcache; extern int currmode; extern userec_t cuser; +extern time_t now; void do_voteboardreply(fileheader_t *fhdr){ char genbuf[1024]; @@ -34,7 +35,7 @@ void do_voteboardreply(fileheader_t *fhdr){ int len; int i, j; int fd; - time_t endtime, now = time(NULL); + time_t endtime; int hastime = 0; @@ -203,7 +204,6 @@ int do_voteboard() { char fpath[80]; FILE* fp; int temp, i; - time_t now = time(NULL); clear(); if(!(currmode & MODE_POST)) { |