summaryrefslogtreecommitdiff
path: root/src/unistd.rs
diff options
context:
space:
mode:
authorRick Richardson <rrichardson@12sidedtech.com>2015-01-07 13:55:12 -0500
committerRick Richardson <rrichardson@12sidedtech.com>2015-01-07 13:55:12 -0500
commit1f99a9321946db0c79a805caa95e7cc2fe310f25 (patch)
treed63778829e1b402d44fb10146526c61a6b51e8b7 /src/unistd.rs
parentd6d31c25c8c585d828d4bf20bc739b494497c0c6 (diff)
downloadnix-1f99a9321946db0c79a805caa95e7cc2fe310f25.zip
more cstr fallout
Diffstat (limited to 'src/unistd.rs')
-rw-r--r--src/unistd.rs4
1 files changed, 2 insertions, 2 deletions
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();