aboutsummaryrefslogtreecommitdiff
path: root/libiberty/hashtab.c
diff options
context:
space:
mode:
authorAndrew Burgess <andrew.burgess@embecosm.com>2020-01-27 22:06:35 +0000
committerAndrew Burgess <andrew.burgess@embecosm.com>2020-02-05 13:01:06 +0000
commit5f44a4341cf9793ccfb28cb0ab6876174c0d89dc (patch)
tree75893f12090c9b7a04a2e0535516f3ebda4165e2 /libiberty/hashtab.c
parenta2155f7dd3d8d031607036d40b0fa32f0cb8da52 (diff)
downloadgcc-5f44a4341cf9793ccfb28cb0ab6876174c0d89dc.zip
gcc-5f44a4341cf9793ccfb28cb0ab6876174c0d89dc.tar.gz
gcc-5f44a4341cf9793ccfb28cb0ab6876174c0d89dc.tar.bz2
libiberty/hashtab: More const parameters
Makes some parameters const in libiberty's hashtab library. include/ChangeLog: * hashtab.h (htab_remove_elt): Make a parameter const. (htab_remove_elt_with_hash): Likewise. libiberty/ChangeLog: * hashtab.c (htab_remove_elt): Make a parameter const. (htab_remove_elt_with_hash): Likewise.
Diffstat (limited to 'libiberty/hashtab.c')
-rw-r--r--libiberty/hashtab.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libiberty/hashtab.c b/libiberty/hashtab.c
index 26c98ce..225e9e5 100644
--- a/libiberty/hashtab.c
+++ b/libiberty/hashtab.c
@@ -709,7 +709,7 @@ htab_find_slot (htab_t htab, const PTR element, enum insert_option insert)
element in the hash table, this function does nothing. */
void
-htab_remove_elt (htab_t htab, PTR element)
+htab_remove_elt (htab_t htab, const PTR element)
{
htab_remove_elt_with_hash (htab, element, (*htab->hash_f) (element));
}
@@ -720,7 +720,7 @@ htab_remove_elt (htab_t htab, PTR element)
function does nothing. */
void
-htab_remove_elt_with_hash (htab_t htab, PTR element, hashval_t hash)
+htab_remove_elt_with_hash (htab_t htab, const PTR element, hashval_t hash)
{
PTR *slot;