Skip to content

Commit 2261e1a

Browse files
committed
Auto merge of #2170 - tweksteen:nlink_t_fix, r=Amanieu
Fix type for Android st_nlink
2 parents ae698a1 + 6055dcb commit 2261e1a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/unix/linux_like/android/b32/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ s! {
2727
__pad0: [::c_uchar; 4],
2828
__st_ino: ::ino_t,
2929
pub st_mode: ::c_uint,
30-
pub st_nlink: ::c_uint,
30+
pub st_nlink: ::nlink_t,
3131
pub st_uid: ::uid_t,
3232
pub st_gid: ::gid_t,
3333
pub st_rdev: ::c_ulonglong,
@@ -49,7 +49,7 @@ s! {
4949
__pad0: [::c_uchar; 4],
5050
__st_ino: ::ino_t,
5151
pub st_mode: ::c_uint,
52-
pub st_nlink: ::c_uint,
52+
pub st_nlink: ::nlink_t,
5353
pub st_uid: ::uid_t,
5454
pub st_gid: ::gid_t,
5555
pub st_rdev: ::c_ulonglong,

src/unix/linux_like/android/b64/aarch64/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ s! {
66
pub st_dev: ::dev_t,
77
pub st_ino: ::ino_t,
88
pub st_mode: ::c_uint,
9-
pub st_nlink: ::c_uint,
9+
pub st_nlink: ::nlink_t,
1010
pub st_uid: ::uid_t,
1111
pub st_gid: ::gid_t,
1212
pub st_rdev: ::dev_t,
@@ -29,7 +29,7 @@ s! {
2929
pub st_dev: ::dev_t,
3030
pub st_ino: ::ino_t,
3131
pub st_mode: ::c_uint,
32-
pub st_nlink: ::c_uint,
32+
pub st_nlink: ::nlink_t,
3333
pub st_uid: ::uid_t,
3434
pub st_gid: ::gid_t,
3535
pub st_rdev: ::dev_t,

0 commit comments

Comments
 (0)