Использовать tablesize в хештаблице

This commit is contained in:
Vladimir Dubrovin committed 2026-04-17 21:15:21 +03:00
1 parent 98604b5421
commit 4ee7f71fb9
2 files changed
+12 -8

No files matched your search

+2 -1
View File
@@ -766,11 +766,12 @@ struct hashtable {
unsigned recsize;
unsigned rnd[4];
struct hashentry ** hashtable;
void * hashvalues;
uint8_t * hashvalues;
struct hashentry * hashempty;
void (*index2hash)(const void *index, unsigned char *hash, const unsigned char *rnd);
int grow;
time_t compacted;
int tablesize;
};
extern struct hashtable dns_table;