Skip to content

Commit 80adb61

Browse files
no1wuditgross35
authored andcommitted
fix: update tm_zone and d_name fields to use c_char type in NuttX
Signed-off-by: Huang Qi <[email protected]> (backport <rust-lang#4222>) (cherry picked from commit cb668df)
1 parent df22514 commit 80adb61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/unix/nuttx/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ s! {
127127
pub tm_yday: i32,
128128
pub tm_isdst: i32,
129129
pub tm_gmtoff: isize,
130-
pub tm_zone: *const i8,
130+
pub tm_zone: *const c_char,
131131
__reserved: [usize; __DEFAULT_RESERVED_SIZE__],
132132
}
133133

@@ -164,7 +164,7 @@ s! {
164164

165165
pub struct dirent {
166166
pub d_type: u8,
167-
pub d_name: [i8; __NAME_MAX__ + 1],
167+
pub d_name: [c_char; __NAME_MAX__ + 1],
168168
}
169169

170170
pub struct fd_set {

0 commit comments

Comments
 (0)