Skip to content

Commit cd51de1

Browse files
committed
Remove CHAR
As with USHORT, keep using C types for BSD socket APIs.
1 parent 00a5b3b commit cd51de1

File tree

1 file changed

+3
-4
lines changed
  • std/src/sys/pal/windows

1 file changed

+3
-4
lines changed

std/src/sys/pal/windows/c.rs

+3-4
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ pub use windows_sys::*;
2020
pub type DWORD = c_ulong;
2121
pub type WCHAR = u16;
2222
pub type SIZE_T = usize;
23-
pub type CHAR = c_char;
2423
pub type ULONG = c_ulong;
2524

2625
pub type LPCVOID = *const c_void;
@@ -142,9 +141,9 @@ pub struct MOUNT_POINT_REPARSE_BUFFER {
142141
#[repr(C)]
143142
pub struct SOCKADDR_STORAGE_LH {
144143
pub ss_family: ADDRESS_FAMILY,
145-
pub __ss_pad1: [CHAR; 6],
144+
pub __ss_pad1: [c_char; 6],
146145
pub __ss_align: i64,
147-
pub __ss_pad2: [CHAR; 112],
146+
pub __ss_pad2: [c_char; 112],
148147
}
149148

150149
#[repr(C)]
@@ -153,7 +152,7 @@ pub struct sockaddr_in {
153152
pub sin_family: ADDRESS_FAMILY,
154153
pub sin_port: c_ushort,
155154
pub sin_addr: in_addr,
156-
pub sin_zero: [CHAR; 8],
155+
pub sin_zero: [c_char; 8],
157156
}
158157

159158
#[repr(C)]

0 commit comments

Comments
 (0)