]> git.ipfire.org Git - thirdparty/curl.git/commit
tool_doswin: avoid Windowsisms in socket code
authorViktor Szakats <commit@vsz.me>
Tue, 27 Jan 2026 05:09:40 +0000 (06:09 +0100)
committerViktor Szakats <commit@vsz.me>
Tue, 27 Jan 2026 18:58:48 +0000 (19:58 +0100)
commita81ab3e6db370f31fca2fc67ca8bfda263f15caa
tree317bceda820622db471270a9ce4db36804998f04
parent67ad0b0d7937194fd4522bf8b2a1a7f18011ce38
tool_doswin: avoid Windowsisms in socket code

For general readability. Also to match the rest of the source code.

- `SOCKADDR` -> `struct sockaddr`
- `SOCKADDR_IN` -> `struct sockaddr_in`
- `== SOCKET_ERROR` -> `== -1` or silent `!= 0`

Follow-up to 9a2663322c330ff11275abafd612e9c99407a94a #17572

Closes #20452
src/tool_doswin.c