Skip to content

Commit

Permalink
fix flag
Browse files Browse the repository at this point in the history
  • Loading branch information
xiazhvera committed Nov 9, 2024
1 parent 3ce216c commit 6233c9d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion include/aws/io/socket.h
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,6 @@ struct aws_socket_vtable {
void *user_data);
int (*socket_get_error_fn)(struct aws_socket *socket);
bool (*socket_is_open_fn)(struct aws_socket *socket);
int (*socket_get_bound_address_fn)(const struct aws_socket *socket, struct aws_socket_endpoint *out_address);
};

struct aws_socket {
Expand Down
6 changes: 3 additions & 3 deletions source/socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ int aws_socket_init(struct aws_socket *socket, struct aws_allocator *alloc, cons
return aws_socket_init_apple_nw_socket(socket, alloc, options);
break;
default:
break;
break;
}
AWS_ASSERT(false && "Invalid socket implementation on platform.");
return AWS_ERROR_PLATFORM_NOT_SUPPORTED;
Expand All @@ -160,12 +160,12 @@ void aws_socket_endpoint_init_local_address_for_test(struct aws_socket_endpoint
struct aws_byte_buf uuid_buf = aws_byte_buf_from_empty_array(uuid_str, sizeof(uuid_str));
AWS_FATAL_ASSERT(aws_uuid_to_str(&uuid, &uuid_buf) == AWS_OP_SUCCESS);

#if defined(AWS_USE_KQUEUE) || defined(AWS_USE_EPOLL)
#if defined(AWS_ENABLE_KQUEUE) || defined(AWS_ENABLE_EPOLL)
snprintf(endpoint->address, sizeof(endpoint->address), "testsock" PRInSTR ".sock", AWS_BYTE_BUF_PRI(uuid_buf));
return;
#endif

#if defined(AWS_USE_IO_COMPLETION_PORTS)
#if defined(AWS_ENABLE_IO_COMPLETION_PORTS)
snprintf(endpoint->address, sizeof(endpoint->address), "\\\\.\\pipe\\testsock" PRInSTR, AWS_BYTE_BUF_PRI(uuid_buf));
return;
#endif
Expand Down

0 comments on commit 6233c9d

Please sign in to comment.