From 1f99a9321946db0c79a805caa95e7cc2fe310f25 Mon Sep 17 00:00:00 2001 From: Rick Richardson Date: Wed, 7 Jan 2015 13:55:12 -0500 Subject: more cstr fallout --- src/unistd.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/unistd.rs') diff --git a/src/unistd.rs b/src/unistd.rs index 0948fabc..1acbda3d 100644 --- a/src/unistd.rs +++ b/src/unistd.rs @@ -1,4 +1,3 @@ -use std::ffi::CString; use std::{mem, ptr}; use libc::{c_char, c_void, c_int, size_t, pid_t, off_t}; use fcntl::{fcntl, Fd, OFlag, O_NONBLOCK, O_CLOEXEC, FD_CLOEXEC}; @@ -7,6 +6,7 @@ use fcntl::FcntlArg::{F_SETFD, F_SETFL}; use errno::{SysResult, SysError, from_ffi}; use core::raw::Slice as RawSlice; use utils::ToCStr; +use std::ffi::CString; #[cfg(target_os = "linux")] pub use self::linux::*; @@ -411,10 +411,10 @@ pub fn ftruncate(fd: Fd, len: off_t) -> SysResult<()> { #[cfg(target_os = "linux")] mod linux { - use std::c_str::ToCStr; use std::path::Path; use syscall::{syscall, SYSPIVOTROOT}; use errno::{SysResult, SysError}; + use utils::ToCStr; pub fn pivot_root(new_root: &Path, put_old: &Path) -> SysResult<()> { let new_root = new_root.to_c_str(); -- cgit v1.2.3