Commit 2224e03
committed
Proper type for variables and function arguments
The actual optval argument type is DWORD (boolean) for the SOL_SOCKET
socket option SO_REUSEADDR:
https://docs.microsoft.com/windows/win32/winsock/sol-socket-socket-options
The type of the optlen argument of setsockopt() is "int":
https://docs.microsoft.com/windows/win32/api/winsock/nf-winsock-setsockopt#syntax
The type of the namelen argument of getsockname() is "int *":
https://docs.microsoft.com/windows/win32/api/winsock/nf-winsock-getsockname#syntax
After these changes, socklen_t is not used anymore. Therefore we can
revert from <w2stcpip.h> to <winsock2.h>.1 parent 54c8776 commit 2224e03
3 files changed
+6
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | 19 | | |
21 | 20 | | |
22 | 21 | | |
23 | 22 | | |
24 | 23 | | |
25 | | - | |
| 24 | + | |
26 | 25 | | |
27 | 26 | | |
28 | 27 | | |
| |||
Whitespace-only changes.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
81 | | - | |
| 80 | + | |
82 | 81 | | |
83 | | - | |
| 82 | + | |
| 83 | + | |
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
| 102 | + | |
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| |||
0 commit comments