aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib/slice
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/lib/slice')
-rw-r--r--src/core/lib/slice/slice_hash_table.c2
-rw-r--r--src/core/lib/slice/slice_hash_table.h1
2 files changed, 1 insertions, 2 deletions
diff --git a/src/core/lib/slice/slice_hash_table.c b/src/core/lib/slice/slice_hash_table.c
index 46c109439b..46f807f4a5 100644
--- a/src/core/lib/slice/slice_hash_table.c
+++ b/src/core/lib/slice/slice_hash_table.c
@@ -60,7 +60,7 @@ static size_t grpc_slice_hash_table_find_index(
if (is_empty(&table->entries[idx])) {
return find_empty ? idx : table->size;
}
- if (grpc_slice_cmp(table->entries[idx].key, key) == 0) {
+ if (grpc_slice_eq(table->entries[idx].key, key)) {
return idx;
}
}
diff --git a/src/core/lib/slice/slice_hash_table.h b/src/core/lib/slice/slice_hash_table.h
index d16a95bd1d..d0c27122d7 100644
--- a/src/core/lib/slice/slice_hash_table.h
+++ b/src/core/lib/slice/slice_hash_table.h
@@ -66,7 +66,6 @@ grpc_slice_hash_table *grpc_slice_hash_table_create(
size_t num_entries, grpc_slice_hash_table_entry *entries);
grpc_slice_hash_table *grpc_slice_hash_table_ref(grpc_slice_hash_table *table);
-/** Returns 1 when \a table is destroyed. */
void grpc_slice_hash_table_unref(grpc_exec_ctx *exec_ctx,
grpc_slice_hash_table *table);