Skip to content

Commit 49fe732

Browse files
committed
openbsd ifreq implementation refinement ifru_data member using proper typedefed type
1 parent 508e174 commit 49fe732

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

libc-test/build.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -523,15 +523,6 @@ fn test_openbsd(target: &str) {
523523
"sys/param.h",
524524
}
525525

526-
cfg.skip_type(move |ty| {
527-
if ty.starts_with("__c_anonymous_") {
528-
return true;
529-
}
530-
match ty {
531-
_ => false,
532-
}
533-
});
534-
535526
cfg.skip_struct(move |ty| {
536527
if ty.starts_with("__c_anonymous_") {
537528
return true;

src/unix/bsd/netbsdlike/openbsd/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,7 @@ s_no_extra_traits! {
625625
pub ifru_metric: ::c_int,
626626
pub ifru_vnetid: i64,
627627
pub ifru_media: u64,
628-
pub ifru_data: *mut ::c_char,
628+
pub ifru_data: ::caddr_t,
629629
pub ifru_index: ::c_uint,
630630
}
631631
}

0 commit comments

Comments
 (0)