summaryrefslogtreecommitdiff
path: root/src/fcntl.rs
diff options
context:
space:
mode:
authorBryant Mairs <bryantmairs@google.com>2018-01-14 09:28:41 -0800
committerBryant Mairs <bryantmairs@google.com>2018-01-28 15:35:35 -0800
commit914cda7cc984c79165d5038e07132fdb94780cee (patch)
tree8ef7939c274416cad52cdb94511f4e1a6caf9aea /src/fcntl.rs
parent899eff72f92cbc300fbd7779957907a39aa0e42b (diff)
downloadnix-914cda7cc984c79165d5038e07132fdb94780cee.zip
Deny unused qualifications
Diffstat (limited to 'src/fcntl.rs')
-rw-r--r--src/fcntl.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fcntl.rs b/src/fcntl.rs
index fa96491f..a42a2201 100644
--- a/src/fcntl.rs
+++ b/src/fcntl.rs
@@ -230,7 +230,7 @@ pub enum FcntlArg<'a> {
#[cfg(any(target_os = "linux", target_os = "android"))]
F_GETPIPE_SZ,
#[cfg(any(target_os = "linux", target_os = "android"))]
- F_SETPIPE_SZ(libc::c_int),
+ F_SETPIPE_SZ(c_int),
// TODO: Rest of flags
}
@@ -343,7 +343,7 @@ pub fn vmsplice(fd: RawFd, iov: &[IoVec<&[u8]>], flags: SpliceFFlags) -> Result<
#[cfg(any(target_os = "linux"))]
libc_bitflags!(
/// Mode argument flags for fallocate determining operation performed on a given range.
- pub struct FallocateFlags: libc::c_int {
+ pub struct FallocateFlags: c_int {
/// File size is not changed.
///
/// offset + len can be greater than file size.