Skip to content
Snippets Groups Projects
Commit 932d0272 authored by Makarand Dharmapurikar's avatar Makarand Dharmapurikar
Browse files

clang-format fixes

parent 61494432
No related branches found
No related tags found
No related merge requests found
...@@ -31,9 +31,9 @@ ...@@ -31,9 +31,9 @@
* *
*/ */
#include "src/core/lib/iomgr/endpoint.h"
#include <grpc/support/alloc.h> #include <grpc/support/alloc.h>
#include <grpc/support/log.h> #include <grpc/support/log.h>
#include "src/core/lib/iomgr/endpoint.h"
typedef struct endpoint_ll_node { typedef struct endpoint_ll_node {
grpc_endpoint *ep; grpc_endpoint *ep;
...@@ -51,7 +51,7 @@ void grpc_initialize_network_status_monitor() { ...@@ -51,7 +51,7 @@ void grpc_initialize_network_status_monitor() {
} }
void grpc_destroy_network_status_monitor() { void grpc_destroy_network_status_monitor() {
for (endpoint_ll_node *curr = head; curr != NULL; ) { for (endpoint_ll_node *curr = head; curr != NULL;) {
endpoint_ll_node *next = curr->next; endpoint_ll_node *next = curr->next;
gpr_free(curr); gpr_free(curr);
curr = next; curr = next;
...@@ -86,9 +86,9 @@ void grpc_network_status_unregister_endpoint(grpc_endpoint *ep) { ...@@ -86,9 +86,9 @@ void grpc_network_status_unregister_endpoint(grpc_endpoint *ep) {
endpoint_ll_node *prev = head; endpoint_ll_node *prev = head;
// if we're unregistering the head, just move head to the next // if we're unregistering the head, just move head to the next
if (ep == head->ep) { if (ep == head->ep) {
head = head->next; head = head->next;
gpr_free(prev); gpr_free(prev);
found = true; found = true;
} else { } else {
for (endpoint_ll_node *curr = head->next; curr != NULL; curr = curr->next) { for (endpoint_ll_node *curr = head->next; curr != NULL; curr = curr->next) {
if (ep == curr->ep) { if (ep == curr->ep) {
......
...@@ -217,7 +217,6 @@ static void test_invoke_network_status_change(grpc_end2end_test_config config) { ...@@ -217,7 +217,6 @@ static void test_invoke_network_status_change(grpc_end2end_test_config config) {
GPR_ASSERT(0 == strcmp(call_details.host, "foo.test.google.fr")); GPR_ASSERT(0 == strcmp(call_details.host, "foo.test.google.fr"));
GPR_ASSERT(was_cancelled == 0); GPR_ASSERT(was_cancelled == 0);
gpr_free(details); gpr_free(details);
grpc_metadata_array_destroy(&initial_metadata_recv); grpc_metadata_array_destroy(&initial_metadata_recv);
grpc_metadata_array_destroy(&trailing_metadata_recv); grpc_metadata_array_destroy(&trailing_metadata_recv);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment