Style: adds BreakBeforeCloseBracketBracedList: true

This commit is contained in:
李通洲
2026-03-30 10:17:45 +08:00
committed by Carter Li
parent c2da9b0cb1
commit 5f261702a9
86 changed files with 194 additions and 98 deletions
+4 -2
View File
@@ -210,7 +210,8 @@ static const char* initNetworkingState(FFNetworkingState* state, const char* hos
struct addrinfo hints = {
.ai_family = state->ipv6 ? AF_INET6 : AF_INET,
.ai_socktype = SOCK_STREAM,
.ai_flags = AI_NUMERICSERV};
.ai_flags = AI_NUMERICSERV
};
FF_DEBUG("Resolving address: %s (%s)", host, state->ipv6 ? "IPv6" : "IPv4");
// Use AI_NUMERICSERV flag to indicate the service is a numeric port, reducing parsing time
@@ -377,7 +378,8 @@ const char* ffNetworkingRecvHttpResponse(FFNetworkingState* state, FFstrbuf* buf
{
int pollRes = poll(&(struct pollfd) {
.fd = state->sockfd,
.events = POLLIN},
.events = POLLIN
},
1,
timeout > 0 ? (int) timeout : -1);
if (pollRes == 0) {
+2 -1
View File
@@ -142,7 +142,8 @@ const char* ffNetworkingSendHttpRequest(FFNetworkingState* state, const char* ho
// Initialize overlapped structure with WSA event for asynchronous I/O
state->overlapped = (OVERLAPPED) {
.hEvent = WSACreateEvent()};
.hEvent = WSACreateEvent()
};
if (state->overlapped.hEvent == WSA_INVALID_EVENT) {
FF_DEBUG("WSACreateEvent() failed");