summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohannes Schilling <dario@deaktualisierung.org>2019-05-31 23:37:13 +0200
committerJohannes Schilling <dario@deaktualisierung.org>2019-05-31 23:37:13 +0200
commit3bfd0daef18870bdaea83600fa1ff14b0aefda3d (patch)
tree88f1d58168e774655c0e8f23d6374d5d7e7c1be0 /src
parentaa86dba83fae3d87fd1a9cb83a894c04ff5096dd (diff)
downloadnix-3bfd0daef18870bdaea83600fa1ff14b0aefda3d.zip
fix more uintXY_t instances
Diffstat (limited to 'src')
-rw-r--r--src/sys/socket/addr.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sys/socket/addr.rs b/src/sys/socket/addr.rs
index f0393f89..fc24bd79 100644
--- a/src/sys/socket/addr.rs
+++ b/src/sys/socket/addr.rs
@@ -1096,7 +1096,7 @@ pub mod alg {
#[cfg(any(target_os = "ios", target_os = "macos"))]
pub mod sys_control {
use ::sys::socket::addr::AddressFamily;
- use libc::{self, c_uchar, uint16_t, uint32_t};
+ use libc::{self, c_uchar};
use std::{fmt, mem};
use std::hash::{Hash, Hasher};
use std::os::unix::io::RawFd;
@@ -1104,7 +1104,7 @@ pub mod sys_control {
#[repr(C)]
pub struct ctl_ioc_info {
- pub ctl_id: uint32_t,
+ pub ctl_id: u32,
pub ctl_name: [c_uchar; MAX_KCTL_NAME],
}
@@ -1141,7 +1141,7 @@ pub mod sys_control {
let addr = libc::sockaddr_ctl {
sc_len: mem::size_of::<libc::sockaddr_ctl>() as c_uchar,
sc_family: AddressFamily::System as c_uchar,
- ss_sysaddr: libc::AF_SYS_CONTROL as uint16_t,
+ ss_sysaddr: libc::AF_SYS_CONTROL as u16,
sc_id: id,
sc_unit: unit,
sc_reserved: [0; 5]