@@ -18,7 +18,6 @@ mod windows_sys;
18
18
pub use windows_sys:: * ;
19
19
20
20
pub type DWORD = c_ulong ;
21
- pub type USHORT = c_ushort ;
22
21
pub type SIZE_T = usize ;
23
22
pub type CHAR = c_char ;
24
23
pub type ULONG = c_ulong ;
@@ -32,7 +31,7 @@ pub type LPVOID = *mut c_void;
32
31
pub type PSRWLOCK = * mut SRWLOCK ;
33
32
34
33
pub type socklen_t = c_int ;
35
- pub type ADDRESS_FAMILY = USHORT ;
34
+ pub type ADDRESS_FAMILY = c_ushort ;
36
35
pub use FD_SET as fd_set;
37
36
pub use LINGER as linger;
38
37
pub use TIMEVAL as timeval;
@@ -151,7 +150,7 @@ pub struct SOCKADDR_STORAGE_LH {
151
150
#[ derive( Copy , Clone ) ]
152
151
pub struct sockaddr_in {
153
152
pub sin_family : ADDRESS_FAMILY ,
154
- pub sin_port : USHORT ,
153
+ pub sin_port : c_ushort ,
155
154
pub sin_addr : in_addr ,
156
155
pub sin_zero : [ CHAR ; 8 ] ,
157
156
}
@@ -160,7 +159,7 @@ pub struct sockaddr_in {
160
159
#[ derive( Copy , Clone ) ]
161
160
pub struct sockaddr_in6 {
162
161
pub sin6_family : ADDRESS_FAMILY ,
163
- pub sin6_port : USHORT ,
162
+ pub sin6_port : c_ushort ,
164
163
pub sin6_flowinfo : c_ulong ,
165
164
pub sin6_addr : in6_addr ,
166
165
pub sin6_scope_id : c_ulong ,
0 commit comments