mirror of
https://github.com/3proxy/3proxy.git
synced 2026-11-22 23:59:41 +08:00
Use uint32_t for hashtable indicies
This commit is contained in:
1 parent
bba9871ed8
commit
260cbf7a3d
2 files changed
+11
-11
No files matched your search
+3
-3
@@ -759,7 +759,7 @@ struct child {
|
||||
struct hashentry {
|
||||
uint8_t hash[HASH_SIZE];
|
||||
time_t expires;
|
||||
int inext;
|
||||
uint32_t inext;
|
||||
char value[4];
|
||||
};
|
||||
|
||||
@@ -767,9 +767,9 @@ struct hashtable {
|
||||
unsigned hashsize;
|
||||
unsigned recsize;
|
||||
unsigned rnd[4];
|
||||
int * ihashtable;
|
||||
uint32_t * ihashtable;
|
||||
uint8_t * hashvalues;
|
||||
int ihashempty;
|
||||
uint32_t ihashempty;
|
||||
void (*index2hash)(const void *index, unsigned char *hash, const unsigned char *rnd);
|
||||
int grow;
|
||||
time_t compacted;
|
||||
|
||||
Reference in new issue
Block a user