summaryrefslogtreecommitdiffstats
path: root/include/pttstruct.h
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-02-26 04:53:49 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-02-26 04:53:49 +0800
commit4a8851c2a5cb962eb43db0ad0eeb06e82974d6a6 (patch)
tree57c1c373f642e506a0bd66111e099f204b158383 /include/pttstruct.h
parent3b64a185e87fdfd39db71bca063b6efb0c7ec92e (diff)
downloadpttbbs-4a8851c2a5cb962eb43db0ad0eeb06e82974d6a6.tar
pttbbs-4a8851c2a5cb962eb43db0ad0eeb06e82974d6a6.tar.gz
pttbbs-4a8851c2a5cb962eb43db0ad0eeb06e82974d6a6.tar.bz2
pttbbs-4a8851c2a5cb962eb43db0ad0eeb06e82974d6a6.tar.lz
pttbbs-4a8851c2a5cb962eb43db0ad0eeb06e82974d6a6.tar.xz
pttbbs-4a8851c2a5cb962eb43db0ad0eeb06e82974d6a6.tar.zst
pttbbs-4a8851c2a5cb962eb43db0ad0eeb06e82974d6a6.zip
fix HASH_BITS checking condition.
suggest to use bigger value if MAX_USERS is quite large. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2550 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'include/pttstruct.h')
-rw-r--r--include/pttstruct.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/include/pttstruct.h b/include/pttstruct.h
index 26eacc51..e0259c40 100644
--- a/include/pttstruct.h
+++ b/include/pttstruct.h
@@ -280,10 +280,6 @@ typedef struct fileheader_t {
#define STRLEN 80 /* Length of most string data */
-/* uhash is a userid->uid hash table -- jochang */
-
-#define HASH_BITS 16
-
union xitem_t {
struct { /* bbs_item */
char fdate[9]; /* [mm/dd/yy] */
@@ -466,6 +462,7 @@ typedef struct keeploc_t {
typedef struct {
int version;
/* uhash */
+ /* uhash is a userid->uid hash table -- jochang */
char userid[MAX_USERS][IDLEN + 1];
char gap_1[IDLEN+1];
int next_in_hash[MAX_USERS];