X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=libiberty%2Fhashtab.c;h=225e9e540a7d2877289cec0a36d2011f233e1ea5;hb=5f8989944880cad1bfffab3801214a0a9b67b72e;hp=9f917c3571d96a6ebd1e472f85bb85787f715a6c;hpb=07ffcfecac22d21774a110db0f65f0387c8f1102;p=deliverable%2Fbinutils-gdb.git diff --git a/libiberty/hashtab.c b/libiberty/hashtab.c index 9f917c3571..225e9e540a 100644 --- a/libiberty/hashtab.c +++ b/libiberty/hashtab.c @@ -1,5 +1,5 @@ /* An expandable hash tables datatype. - Copyright (C) 1999-2019 Free Software Foundation, Inc. + Copyright (C) 1999-2020 Free Software Foundation, Inc. Contributed by Vladimir Makarov (vmakarov@cygnus.com). This file is part of the libiberty library. @@ -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;