diff options
author | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-03-03 21:14:59 +0800 |
---|---|---|
committer | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-03-03 21:14:59 +0800 |
commit | fea64042f0f66b989215dfdf644dade15b2b6be1 (patch) | |
tree | c4ce862fecd857f32e5ceafbb4659145c1097d69 /include/pttstruct.h | |
parent | c8e482734eccf9567c8ca19edd126ab3d9d6404c (diff) | |
download | pttbbs-fea64042f0f66b989215dfdf644dade15b2b6be1.tar pttbbs-fea64042f0f66b989215dfdf644dade15b2b6be1.tar.gz pttbbs-fea64042f0f66b989215dfdf644dade15b2b6be1.tar.bz2 pttbbs-fea64042f0f66b989215dfdf644dade15b2b6be1.tar.lz pttbbs-fea64042f0f66b989215dfdf644dade15b2b6be1.tar.xz pttbbs-fea64042f0f66b989215dfdf644dade15b2b6be1.tar.zst pttbbs-fea64042f0f66b989215dfdf644dade15b2b6be1.zip |
add regtime to post & vote limits
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2573 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'include/pttstruct.h')
-rw-r--r-- | include/pttstruct.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/include/pttstruct.h b/include/pttstruct.h index 0223ceee..5e686a8b 100644 --- a/include/pttstruct.h +++ b/include/pttstruct.h @@ -170,11 +170,11 @@ typedef struct boardheader_t { char chesscountry; unsigned char vote_limit_posts; /* 連署 : 文章篇數下限 */ unsigned char vote_limit_logins; /* 連署 : 登入次數下限 */ - char pad[1]; /* 沒用到的 */ + unsigned char vote_limit_regtime; /* 連署 : 註冊時間限制 */ time4_t bupdate; /* note update time */ unsigned char post_limit_posts; /* 發表文章 : 文章篇數下限 */ unsigned char post_limit_logins; /* 發表文章 : 登入次數下限 */ - char pad2[1]; /* 沒用到的 */ + unsigned char post_limit_regtime; /* 發表文章 : 註冊時間限制 */ unsigned char bvote; /* 正舉辦 Vote 數 */ time4_t vtime; /* Vote close time */ unsigned int level; /* 可以看此板的權限 */ @@ -239,7 +239,8 @@ typedef struct fileheader_t { /* different order to match alignment */ #ifdef _BIG_ENDIAN struct { - unsigned char pad[2]; /* money & 0xffff0000 */ + unsigned char pad[1]; /* money & 0xff000000 */ + unsigned char regtime; /* money & 0xff0000 */ unsigned char logins; /* money & 0xff00 */ unsigned char posts; /* money & 0xff */ } vote_limits; @@ -251,7 +252,8 @@ typedef struct fileheader_t { struct { unsigned char posts; /* money & 0xff */ unsigned char logins; /* money & 0xff00 */ - unsigned char pad[2]; /* money & 0xffff0000 */ + unsigned char regtime; /* money & 0xff0000 */ + unsigned char pad[1]; /* money & 0xffff0000 */ } vote_limits; struct { unsigned int ref:31; |