]> git.ipfire.org Git - thirdparty/systemd.git/commit
hash-func: change value type of string_hash_ops_free_free to void* 19736/head
authorLennart Poettering <lennart@poettering.net>
Wed, 26 May 2021 19:40:43 +0000 (21:40 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 26 May 2021 19:44:36 +0000 (21:44 +0200)
commit74bbc85ca68e2845534620bd0e60c9a6ee152c06
treeb504f578ae3eaf1e04c81a3f7556d1da9bff33f0
parent730b9c1e1469dfd6d6850e9ea06da3cac469eba0
hash-func: change value type of string_hash_ops_free_free to void*

The generic string_hash_ops_free_free hash operations vtable currently
assumes the data pointer is of type char*. There's really no reason to
assume that though, we regularly store non-string data as value in a
hashmap. Hence, to accomodate for that, use void* as pointer for the
value (and keep char* for the key, as that's what
string_hash_ops_free_free is for, after all).
src/basic/hash-funcs.c