aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib/slice
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2017-01-17 12:28:21 -0800
committerGravatar Craig Tiller <ctiller@google.com>2017-01-17 12:28:21 -0800
commit7bb90fa57c07741556eb14ae8f058ecfff3e838c (patch)
treee0f974e66bb30e05db9eb98cd9cf8765bf8a5376 /src/core/lib/slice
parent824da1cc0482e1e5595ea447834f78e8f99391a8 (diff)
Respond to review comments
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);