chiark / gitweb /
use c_int from std::os::raw
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 27 Sep 2022 21:16:59 +0000 (22:16 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 27 Sep 2022 21:16:59 +0000 (22:16 +0100)
The entry in std:ffi is MSRV 1.64 which is rather new!

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
server/daemon.rs

index c2b39a4ebd17158c671b9387c58a59a4edc33899..c5f6155fb36c482a0c465ab25631e50a528b7309 100644 (file)
@@ -3,8 +3,9 @@
 // There is NO WARRANTY.
 
 use std::convert::TryInto;
-use std::ffi::{c_int, CStr};
+use std::ffi::CStr;
 use std::io::IoSlice;
+use std::os::raw::c_int;
 use std::os::unix::io::RawFd;
 use std::slice;
 use std::str;