Skip to content

Commit 5f1f368

Browse files
Avoid C++20 initilizers
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 031160d commit 5f1f368

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

ArduinoCore-Linux/cores/arduino/SocketImpl.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,9 @@ int SocketImpl::connect(const char *address, uint16_t port, int32_t timeout_ms)
158158
FD_ZERO(&errorfds);
159159
FD_SET(sock, &errorfds);
160160

161-
timeval timeout {
162-
.tv_sec = timeout_ms / 1000,
163-
.tv_usec = (timeout_ms % 1000) * 1000,
164-
};
161+
timeval timeout;
162+
timeout.tv_sec = timeout_ms / 1000;
163+
timeout.tv_usec = (timeout_ms % 1000) * 1000;
165164

166165
result = select(sock + 1, nullptr, &writefds, &errorfds, &timeout);
167166
if (result == 0) {

0 commit comments

Comments
 (0)