aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core/network_benchmarks
diff options
context:
space:
mode:
authorGravatar Ronnie Sahlberg <ronniesahlberg@gmail.com>2015-03-07 08:39:22 -0800
committerGravatar Ronnie Sahlberg <ronniesahlberg@gmail.com>2015-03-07 08:39:22 -0800
commit2ad8d21158df8b9a7e37b0a966f76b52a61f25e6 (patch)
treee1a64c2292d313ca08dea9288c7fc55b108b0db2 /test/core/network_benchmarks
parent3631e82c890de1ff0382ab3062b2d05193604046 (diff)
strcmp: change all !str[n]cmp to str[n]cmp == 0
Change all !str[n]cmp to be str[n]cmp == 0 consistently across the codebase. Issue #231 Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
Diffstat (limited to 'test/core/network_benchmarks')
-rw-r--r--test/core/network_benchmarks/low_level_ping_pong.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/core/network_benchmarks/low_level_ping_pong.c b/test/core/network_benchmarks/low_level_ping_pong.c
index a084c55a35..7d74d0e078 100644
--- a/test/core/network_benchmarks/low_level_ping_pong.c
+++ b/test/core/network_benchmarks/low_level_ping_pong.c
@@ -654,7 +654,7 @@ int main(int argc, char **argv) {
}
for (i = 0; i < GPR_ARRAY_SIZE(test_strategies); ++i) {
- if (!strcmp(test_strategies[i].name, read_strategy)) {
+ if (strcmp(test_strategies[i].name, read_strategy) == 0) {
test_strategy = &test_strategies[i];
}
}