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/kaede.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/kaede.c')
-rw-r--r-- | mbbsd/kaede.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mbbsd/kaede.c b/mbbsd/kaede.c index c0bd5103..d3f9355b 100644 --- a/mbbsd/kaede.c +++ b/mbbsd/kaede.c @@ -1,4 +1,4 @@ -/* $Id: kaede.c,v 1.1 2002/03/07 15:13:48 in2 Exp $ */ +/* $Id: kaede.c,v 1.2 2002/05/13 03:20:04 ptt Exp $ */ #include <stdio.h> #include <string.h> #include <time.h> @@ -11,6 +11,7 @@ extern struct utmpfile_t *utmpshm; extern userec_t cuser; +extern time_t now; char *Ptt_prints(char *str, int mode) { char *po , strbuf[256]; @@ -21,7 +22,6 @@ char *Ptt_prints(char *str, int mode) { strcpy(str, strbuf); } while((po = strstr(str, "\033*t"))) { - time_t now = time(0); po[0] = 0; sprintf(strbuf, "%s%s", str, Cdate(&now)); |