Skip to content

Commit 22b3107

Browse files
dario23asomers
authored andcommitted
fix more uintXY_t instances
1 parent 2e16164 commit 22b3107

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/sys/socket/addr.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1016,15 +1016,15 @@ pub mod netlink {
10161016
#[cfg(any(target_os = "ios", target_os = "macos"))]
10171017
pub mod sys_control {
10181018
use ::sys::socket::addr::AddressFamily;
1019-
use libc::{self, c_uchar, uint16_t, uint32_t};
1019+
use libc::{self, c_uchar};
10201020
use std::{fmt, mem};
10211021
use std::hash::{Hash, Hasher};
10221022
use std::os::unix::io::RawFd;
10231023
use {Errno, Error, Result};
10241024

10251025
#[repr(C)]
10261026
pub struct ctl_ioc_info {
1027-
pub ctl_id: uint32_t,
1027+
pub ctl_id: u32,
10281028
pub ctl_name: [c_uchar; MAX_KCTL_NAME],
10291029
}
10301030

@@ -1061,7 +1061,7 @@ pub mod sys_control {
10611061
let addr = libc::sockaddr_ctl {
10621062
sc_len: mem::size_of::<libc::sockaddr_ctl>() as c_uchar,
10631063
sc_family: AddressFamily::System as c_uchar,
1064-
ss_sysaddr: libc::AF_SYS_CONTROL as uint16_t,
1064+
ss_sysaddr: libc::AF_SYS_CONTROL as u16,
10651065
sc_id: id,
10661066
sc_unit: unit,
10671067
sc_reserved: [0; 5]

0 commit comments

Comments
 (0)