summaryrefslogtreecommitdiffstats
path: root/include/pttstruct.h
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-02-25 18:59:22 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-02-25 18:59:22 +0800
commit3944fd34ec9b7b7bf252c7169a7ebc9b84e95fbf (patch)
treee164cedcefe078e766ab4c300fe252611fec69c4 /include/pttstruct.h
parente14cc0a0a4682b43440aa5db8f72cad16d35abe9 (diff)
downloadpttbbs-3944fd34ec9b7b7bf252c7169a7ebc9b84e95fbf.tar
pttbbs-3944fd34ec9b7b7bf252c7169a7ebc9b84e95fbf.tar.gz
pttbbs-3944fd34ec9b7b7bf252c7169a7ebc9b84e95fbf.tar.bz2
pttbbs-3944fd34ec9b7b7bf252c7169a7ebc9b84e95fbf.tar.lz
pttbbs-3944fd34ec9b7b7bf252c7169a7ebc9b84e95fbf.tar.xz
pttbbs-3944fd34ec9b7b7bf252c7169a7ebc9b84e95fbf.tar.zst
pttbbs-3944fd34ec9b7b7bf252c7169a7ebc9b84e95fbf.zip
import FNV hash function.
rewrite getkeep() for memory saving git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2544 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'include/pttstruct.h')
-rw-r--r--include/pttstruct.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/pttstruct.h b/include/pttstruct.h
index ce5b5382..ca5ed911 100644
--- a/include/pttstruct.h
+++ b/include/pttstruct.h
@@ -429,10 +429,9 @@ typedef struct crosspost_t {
#define SORT_BY_SEX 5
typedef struct keeploc_t {
- char *key;
+ unsigned int hashkey;
int top_ln;
int crs_ln;
- struct keeploc_t *next;
} keeploc_t;
#define VALID_USHM_ENTRY(X) ((X) >= 0 && (X) < USHM_SIZE)