Skip to content

Commit ccd1cfd

Browse files
marjakmMattis Marjak
authored and
Mattis Marjak
committed
allow improper_ctypes for size_t
1 parent c8f4a13 commit ccd1cfd

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

src/mqueue.rs

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ mod ffi {
4141
use super::MQd;
4242
use super::MqAttr;
4343

44+
#[allow(improper_ctypes)]
4445
extern "C" {
4546
pub fn mq_open(name: *const c_char, oflag: c_int, ...) -> MQd;
4647

src/sys/mman.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ mod ffi {
179179

180180
pub use libc::{mmap, munmap};
181181

182-
182+
#[allow(improper_ctypes)]
183183
extern {
184184
pub fn shm_open(name: *const c_char, oflag: c_int, mode: mode_t) -> c_int;
185185
pub fn shm_unlink(name: *const c_char) -> c_int;

src/unistd.rs

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ mod ffi {
1616
use libc::{c_char, c_int, size_t};
1717
pub use libc::{close, read, write, pipe, ftruncate, unlink, setpgid, fork, getpid, getppid};
1818

19+
#[allow(improper_ctypes)]
1920
extern {
2021
// duplicate a file descriptor
2122
// doc: http://man7.org/linux/man-pages/man2/dup.2.html

0 commit comments

Comments
 (0)