refactor: replace char_u

Work on https://github.com/neovim/neovim/issues/459
This commit is contained in:
Dundar Goc
2022-06-28 13:03:09 +02:00
parent ed429c00d7
commit 3b8804571c
53 changed files with 531 additions and 569 deletions

View File

@@ -85,9 +85,9 @@ void hash_clear_all(hashtab_T *ht, unsigned int off)
/// used for that key.
/// WARNING: Returned pointer becomes invalid as soon as the hash table
/// is changed in any way.
hashitem_T *hash_find(const hashtab_T *const ht, const char_u *const key)
hashitem_T *hash_find(const hashtab_T *const ht, const char *const key)
{
return hash_lookup(ht, (const char *)key, STRLEN(key), hash_hash(key));
return hash_lookup(ht, key, STRLEN(key), hash_hash((char_u *)key));
}
/// Like hash_find, but key is not NUL-terminated