diff options
author | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-07-08 22:37:28 +0800 |
---|---|---|
committer | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-07-08 22:37:28 +0800 |
commit | b791df282f267b5ed24bd4fb4cad0ddb4601cfa9 (patch) | |
tree | fba70f8d37f82ac0206f3156c28455ac0283f9ec | |
parent | 8264803f76932799339dff9d5d04f47c9e2b86f1 (diff) | |
download | pttbbs-b791df282f267b5ed24bd4fb4cad0ddb4601cfa9.tar pttbbs-b791df282f267b5ed24bd4fb4cad0ddb4601cfa9.tar.gz pttbbs-b791df282f267b5ed24bd4fb4cad0ddb4601cfa9.tar.bz2 pttbbs-b791df282f267b5ed24bd4fb4cad0ddb4601cfa9.tar.lz pttbbs-b791df282f267b5ed24bd4fb4cad0ddb4601cfa9.tar.xz pttbbs-b791df282f267b5ed24bd4fb4cad0ddb4601cfa9.tar.zst pttbbs-b791df282f267b5ed24bd4fb4cad0ddb4601cfa9.zip |
change to fit bit64 for sob import
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2922 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | include/fpg.h | 12 | ||||
-rw-r--r-- | include/proto.h | 1 | ||||
-rw-r--r-- | mbbsd/syspost.c | 4 |
3 files changed, 8 insertions, 9 deletions
diff --git a/include/fpg.h b/include/fpg.h index 0ceabd73..199eab02 100644 --- a/include/fpg.h +++ b/include/fpg.h @@ -27,8 +27,8 @@ struct sobuserec usint userlevel; /* 使用者權限 4 bytes */ ushort numlogins; /* 上站次數 2 bytes */ ushort numposts; /* POST次數 2 bytes */ - time_t firstlogin; /* 註冊時間 4 bytes */ - time_t lastlogin; /* 前次上站 4 bytes */ + time4_t firstlogin; /* 註冊時間 4 bytes */ + time4_t lastlogin; /* 前次上站 4 bytes */ char lasthost[24]; /* 上站地點 24 bytes */ char vhost[24]; /* 虛擬網址 24 bytes */ char email[50]; /* E-MAIL 50 bytes */ @@ -51,10 +51,10 @@ struct sobuserec unsigned long int totaltime; /* 上線總時數 8 bytes */ usint sendmsg; /* 發訊息次數 4 bytes */ usint receivemsg; /* 收訊息次數 4 bytes */ - unsigned long int goldmoney; /* 風塵金幣 8 bytes */ - unsigned long int silvermoney; /* 銀幣 8 bytes */ - unsigned long int exp; /* 經驗值 8 bytes */ - time_t dtime; /* 存款時間 4 bytes */ + unsigned int goldmoney; /* 風塵金幣 8 bytes */ + unsigned int silvermoney; /* 銀幣 8 bytes */ + unsigned int exp; /* 經驗值 8 bytes */ + time4_t dtime; /* 存款時間 4 bytes */ int scoretimes; /* 評分次數 4 bytes */ uschar rtimes; /* 填註冊單次數 1 bytes */ int award; /* 獎懲判斷 4 bytes */ diff --git a/include/proto.h b/include/proto.h index ec78761d..a04827c2 100644 --- a/include/proto.h +++ b/include/proto.h @@ -709,7 +709,6 @@ int u_editsig(void); int u_cloak(void); int u_register(void); int u_list(void); - #if defined(DBCSAWARE_GETDATA) || defined(DBCSAWARE_EDIT) # define DBCSAWARE int u_detectDBCSAwareEvilClient(); diff --git a/mbbsd/syspost.c b/mbbsd/syspost.c index 99d0fd16..8849b2aa 100644 --- a/mbbsd/syspost.c +++ b/mbbsd/syspost.c @@ -83,8 +83,8 @@ post_change_perm(int oldperm, int newperm, const char *sysopid, const char *user if (flag) { clrtobot(); clear(); - while (!getdata_str(5, 0, "請輸入理由以示負責:", - reason, sizeof(reason), DOECHO, "看板板主:")); + while (!getdata(5, 0, "請輸入理由以示負責:", + reason, sizeof(reason), DOECHO)); fprintf(fp, "\n " ANSI_COLOR(1;37) "站長%s修改權限理由是:%s" ANSI_RESET, cuser.userid, reason); fclose(fp); |