Skip to content

Commit cb668df

Browse files
committed
fix: update tm_zone and d_name fields to use c_char type in NuttX
Signed-off-by: Huang Qi <[email protected]>
1 parent ec9ea22 commit cb668df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/unix/nuttx/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ s! {
129129
pub tm_yday: i32,
130130
pub tm_isdst: i32,
131131
pub tm_gmtoff: isize,
132-
pub tm_zone: *const i8,
132+
pub tm_zone: *const c_char,
133133
__reserved: [usize; __DEFAULT_RESERVED_SIZE__],
134134
}
135135

@@ -166,7 +166,7 @@ s! {
166166

167167
pub struct dirent {
168168
pub d_type: u8,
169-
pub d_name: [i8; __NAME_MAX__ + 1],
169+
pub d_name: [c_char; __NAME_MAX__ + 1],
170170
}
171171

172172
pub struct fd_set {

0 commit comments

Comments
 (0)