Skip to content

Commit

Permalink
more clang
Browse files Browse the repository at this point in the history
  • Loading branch information
sbSteveK committed Sep 24, 2024
1 parent b7f13df commit b325809
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/socket_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,8 @@ static int s_test_connect_timeout(struct aws_allocator *allocator, void *ctx) {
ASSERT_TRUE(host_callback_data.has_a_address);

struct aws_socket_endpoint endpoint = {.port = 81};
snprintf(endpoint.address, sizeof(endpoint.address), "%s", aws_string_bytes(host_callback_data.a_address.address));
snprintf(
endpoint.address, sizeof(endpoint.address), "%s", aws_string_bytes(host_callback_data.a_address.address));

aws_string_destroy((void *)host_name);
aws_host_address_clean_up(&host_callback_data.a_address);
Expand Down Expand Up @@ -780,7 +781,8 @@ static int s_test_connect_timeout_cancelation(struct aws_allocator *allocator, v
ASSERT_TRUE(host_callback_data.has_a_address);

struct aws_socket_endpoint endpoint = {.port = 81};
snprintf(endpoint.address, sizeof(endpoint.address), "%s", aws_string_bytes(host_callback_data.a_address.address));
snprintf(
endpoint.address, sizeof(endpoint.address), "%s", aws_string_bytes(host_callback_data.a_address.address));

aws_string_destroy((void *)host_name);
aws_host_address_clean_up(&host_callback_data.a_address);
Expand Down

0 comments on commit b325809

Please sign in to comment.