Skip to content

Commit 53d7168

Browse files
committed
Android: correct statfs64.f_fsid type & visibility
The visibility has been not public since the initial commit[1]. But there is no reason to hide this struct member specifically. The type has also been "__fsid_t" in Android's bionic[2], so fix that as well. This makes it consistent with statfs.f_fsid nicely. [1] a36da11 [2] https://cs.android.com/search?q=file:bionic%2Flibc%20f_fsid
1 parent 70962e3 commit 53d7168

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ s! {
7474
pub f_bavail: u64,
7575
pub f_files: u64,
7676
pub f_ffree: u64,
77-
f_fsid: [u32; 2],
77+
pub f_fsid: ::__fsid_t,
7878
pub f_namelen: u32,
7979
pub f_frsize: u32,
8080
pub f_flags: u32,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ s! {
8484
pub f_bavail: u64,
8585
pub f_files: u64,
8686
pub f_ffree: u64,
87-
f_fsid: [u32; 2],
87+
pub f_fsid: ::__fsid_t,
8888
pub f_namelen: u64,
8989
pub f_frsize: u64,
9090
pub f_flags: u64,

0 commit comments

Comments
 (0)