Add some consts as recommended by make cppcheck.

This commit is contained in:
Dianne Skoll
2025-07-21 17:44:13 -04:00
parent 418b050b1c
commit c3ab2a15cf
11 changed files with 27 additions and 27 deletions
+2 -2
View File
@@ -141,7 +141,7 @@ hash_table_free(hash_table *t)
* \return The number of items in the hash table
*/
size_t
hash_table_num_entries(hash_table *t)
hash_table_num_entries(hash_table const *t)
{
return t->num_entries;
}
@@ -154,7 +154,7 @@ hash_table_num_entries(hash_table *t)
* \return The number of buckets in the hash table
*/
size_t
hash_table_num_buckets(hash_table *t)
hash_table_num_buckets(hash_table const *t)
{
if (t->bucket_choice_index >= NUM_BUCKET_CHOICES) {
return 0;