Indicate and enforce constness of hash table key in certain functions (#158)
commit5e801dccc49faadcb18cd8ddee6200633e8f11b8
authorJiří Zárevúcky <zarevucky.jiri@gmail.com>
Mon, 25 Feb 2019 14:42:38 +0000 (25 15:42 +0100)
committerGitHub <noreply@github.com>
Mon, 25 Feb 2019 14:42:38 +0000 (25 15:42 +0100)
treeaf4e21c712efe92812992a13829fb9a293cddb1a
parentee8d4d601987a29ae753bdf20ae64a1e84bcf074
Indicate and enforce constness of hash table key in certain functions (#158)

The assumption here is that modifying key in the hash/equal functions in something completely unexpected, and not something you would ever want to do intentionally, so it makes sense to disallow it entirely to get that extra level of checking.
29 files changed:
kernel/genarch/src/mm/page_ht.c
kernel/generic/include/adt/hash_table.h
kernel/generic/src/adt/hash_table.c
kernel/generic/src/cap/cap.c
kernel/generic/src/ddi/irq.c
kernel/generic/src/lib/ra.c
uspace/app/hbench/env.c
uspace/app/trace/ipcp.c
uspace/app/trace/proto.c
uspace/lib/block/block.c
uspace/lib/c/generic/adt/hash_table.c
uspace/lib/c/generic/async/ports.c
uspace/lib/c/generic/async/server.c
uspace/lib/c/include/adt/hash_table.h
uspace/lib/ext4/src/ops.c
uspace/lib/nic/src/nic_addr_db.c
uspace/lib/nic/src/nic_wol_virtues.c
uspace/srv/devman/devtree.c
uspace/srv/fs/cdfs/cdfs_ops.c
uspace/srv/fs/exfat/exfat_idx.c
uspace/srv/fs/fat/fat_idx.c
uspace/srv/fs/locfs/locfs_ops.c
uspace/srv/fs/mfs/mfs_ops.c
uspace/srv/fs/tmpfs/tmpfs_ops.c
uspace/srv/fs/udf/udf_idx.c
uspace/srv/hid/input/gsp.c
uspace/srv/ns/service.c
uspace/srv/ns/task.c
uspace/srv/vfs/vfs_node.c