Skip to content

Commit

Permalink
fix: Combine separate assignment into initializer
Browse files Browse the repository at this point in the history
Bug: N/A
Change-Id: Iadd991de5cb5236ef836a93f0816aa3c643ae82f
GitOrigin-RevId: e74e756a394ec71b352606efbb8a697a6113d778
  • Loading branch information
Privacy Sandbox Team authored and copybara-github committed Sep 30, 2024
1 parent df80529 commit 0409b12
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core/test/utils/http1_helper/test_http1_server.cc
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,10 @@ ExecutionResultOr<::in_port_t> GetUnusedPortNumber() {
::sockaddr_in server_addr = {
.sin_family = AF_INET,
.sin_port = 0,
.sin_addr{
.s_addr = INADDR_ANY,
},
};
server_addr.sin_addr.s_addr = INADDR_ANY;
::socklen_t server_len = sizeof(server_addr);
if (::bind(sockfd, reinterpret_cast<::sockaddr*>(&server_addr), server_len) <
0) {
Expand Down

0 comments on commit 0409b12

Please sign in to comment.