diff --git a/test/test_unistd.rs b/test/test_unistd.rs index ffce18506a..5a1b5c87d1 100644 --- a/test/test_unistd.rs +++ b/test/test_unistd.rs @@ -138,14 +138,11 @@ fn test_lseek() { #[cfg(any(target_os = "linux", target_os = "android"))] #[test] fn test_lseek64() { - use libc::off_t; - const CONTENTS: &'static [u8] = b"abcdef123456"; let mut tmp = tempfile().unwrap(); tmp.write(CONTENTS).unwrap(); - let offset: libc::off64_t = 5; - lseek64(tmp.as_raw_fd(), offset, Whence::SeekSet).unwrap(); + lseek64(tmp.as_raw_fd(), 5, Whence::SeekSet).unwrap(); let mut buf = String::new(); tmp.read_to_string(&mut buf).unwrap();