summaryrefslogtreecommitdiffstats
path: root/mbbsd/edit.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-05-05 17:57:21 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-05-05 17:57:21 +0800
commitd74ae1e8f983520c4fa0322daeedc9bcc9304710 (patch)
tree3a04ff9fc8b8b5fee6704e695d132a7cc3f4efb0 /mbbsd/edit.c
parentb31a0e3d53ce17d4626fe125dd1e1f654a0d192c (diff)
downloadpttbbs-d74ae1e8f983520c4fa0322daeedc9bcc9304710.tar
pttbbs-d74ae1e8f983520c4fa0322daeedc9bcc9304710.tar.gz
pttbbs-d74ae1e8f983520c4fa0322daeedc9bcc9304710.tar.bz2
pttbbs-d74ae1e8f983520c4fa0322daeedc9bcc9304710.tar.lz
pttbbs-d74ae1e8f983520c4fa0322daeedc9bcc9304710.tar.xz
pttbbs-d74ae1e8f983520c4fa0322daeedc9bcc9304710.tar.zst
pttbbs-d74ae1e8f983520c4fa0322daeedc9bcc9304710.zip
- (internal) replace all localtime4() by localtime4_r().
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4272 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/edit.c')
-rw-r--r--mbbsd/edit.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/mbbsd/edit.c b/mbbsd/edit.c
index b0c806ac..495b4381 100644
--- a/mbbsd/edit.c
+++ b/mbbsd/edit.c
@@ -1669,7 +1669,6 @@ static void upload_file(void);
static int
write_file(const char *fpath, int saveheader, int *islocal, char *mytitle, int upload, int chtitle)
{
- struct tm *ptime;
FILE *fp = NULL;
textline_t *p, *v;
char ans[TTLEN], *msg;
@@ -1831,13 +1830,11 @@ write_file(const char *fpath, int saveheader, int *islocal, char *mytitle, int u
if(strcmp(currboard, BN_SYSOP) == 0)
#endif
{
- ptime = localtime4(&now);
fprintf(fp,
- "¡° ½s¿è: %-15s ¨Ó¦Û: %-20s (%02d/%02d %02d:%02d)\n",
+ "¡° ½s¿è: %-15s ¨Ó¦Û: %-20s (%s)\n",
cuser.userid,
FROMHOST,
- ptime->tm_mon + 1, ptime->tm_mday,
- ptime->tm_hour, ptime->tm_min);
+ Cdate_mdHM(&now));
}
}