mirror of
https://github.com/rkd77/elinks.git
synced 2024-09-27 02:56:18 -04:00
[hash] drop const for key
This commit is contained in:
parent
fd4622d21b
commit
b894447af1
@ -92,7 +92,7 @@ add_hash_item(struct hash *hash, const char *key, unsigned int keylen,
|
||||
|
||||
hashval = hash->func(key, keylen, HASH_MAGIC) & hash_mask(hash->width);
|
||||
|
||||
item->key = key;
|
||||
item->key = (char *)key;
|
||||
item->keylen = keylen;
|
||||
item->value = value;
|
||||
|
||||
|
@ -16,7 +16,7 @@ typedef hash_value_T (* hash_func_T)(const char *key, unsigned int keylen, hash_
|
||||
struct hash_item {
|
||||
LIST_HEAD_EL(struct hash_item);
|
||||
|
||||
const char *key;
|
||||
char *key;
|
||||
unsigned int keylen;
|
||||
void *value;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user