summaryrefslogtreecommitdiffstats
path: root/mbbsd/merge.c
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-01-24 22:06:48 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-01-24 22:06:48 +0800
commit9084d9602e8725a6fb832d4396c12ddd7bb2b7c7 (patch)
tree78d04dab42a50e73845c8e31eb877001fb8379cd /mbbsd/merge.c
parentf6324fdcb56a70815842cc39cb1826ce6b82148c (diff)
downloadpttbbs-9084d9602e8725a6fb832d4396c12ddd7bb2b7c7.tar
pttbbs-9084d9602e8725a6fb832d4396c12ddd7bb2b7c7.tar.gz
pttbbs-9084d9602e8725a6fb832d4396c12ddd7bb2b7c7.tar.bz2
pttbbs-9084d9602e8725a6fb832d4396c12ddd7bb2b7c7.tar.lz
pttbbs-9084d9602e8725a6fb832d4396c12ddd7bb2b7c7.tar.xz
pttbbs-9084d9602e8725a6fb832d4396c12ddd7bb2b7c7.tar.zst
pttbbs-9084d9602e8725a6fb832d4396c12ddd7bb2b7c7.zip
use time4_t(uint32_t) instead of time_t for x86-64 arch.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2426 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/merge.c')
-rw-r--r--mbbsd/merge.c26
1 files changed, 16 insertions, 10 deletions
diff --git a/mbbsd/merge.c b/mbbsd/merge.c
index 7694f4a6..678e5fe6 100644
--- a/mbbsd/merge.c
+++ b/mbbsd/merge.c
@@ -12,7 +12,7 @@ m_sob()
int count=0, i, isimported=0, corrected;
FILE *fp;
sobuserec man;
- time_t d;
+ time4_t d;
clear();
move(1,0);
@@ -112,26 +112,32 @@ m_sob()
cuser.userlevel |= PERM_MAILLIMIT;
}
- if(cuser.firstlogin > man.firstlogin) d = man.firstlogin;
- else d = cuser.firstlogin;
+ if (cuser.firstlogin > man.firstlogin)
+ d = man.firstlogin;
+ else
+ d = cuser.firstlogin;
cuser.firstlogin = d;
- if(cuser.numlogins < man.numlogins) i = man.numlogins;
- else i = cuser.numlogins;
+ if (cuser.numlogins < man.numlogins)
+ i = man.numlogins;
+ else
+ i = cuser.numlogins;
sprintf(buf, "沙灘進站次數 %d 此帳號 %d 將取 %d \n", man.numlogins,
cuser.numlogins, i);
strcat(msg,buf);
cuser.numlogins = i;
- if(cuser.numposts < man.numposts ) i = man.numposts;
- else i = cuser.numposts;
+ if (cuser.numposts < man.numposts )
+ i = man.numposts;
+ else
+ i = cuser.numposts;
sprintf(buf, "沙灘文章次數 %d 此帳號 %d 將取 %d\n",
man.numposts,cuser.numposts,i);
strcat(msg,buf);
cuser.numposts = i;
outs(msg);
- while(search_ulistn(usernum,2))
+ while (search_ulistn(usernum,2))
{vmsg("請將重覆上站其他線關閉! 再繼續");}
passwd_update(usernum, &cuser);
}
@@ -144,13 +150,13 @@ m_sob()
chdir(BBSHOME);
if (getans("是否匯入個人信箱? (Y/n)")!='n')
- {
+ {
sethomedir(buf, cuser.userid);
sprintf(genbuf, "sob/home/%c/%s/.DIR",
userid[0], userid);
merge_dir(buf, genbuf, 1);
strcat(msg, "匯入個人信箱\n");
- }
+ }
if(getans("是否匯入個人信箱精華區(個人作品集)? (會覆蓋\現有設定) (y/N)")=='y')
{
fileheader_t fh;