1
0
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:
Witold Filipczyk 2023-12-08 11:11:06 +01:00
parent fd4622d21b
commit b894447af1
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;
};