Skip to content

Commit fea671a

Browse files
committed
got rid of offset
1 parent 73f6c5c commit fea671a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

test/test_unistd.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,14 +138,11 @@ fn test_lseek() {
138138
#[cfg(any(target_os = "linux", target_os = "android"))]
139139
#[test]
140140
fn test_lseek64() {
141-
use libc::off_t;
142-
143141
const CONTENTS: &'static [u8] = b"abcdef123456";
144142
let mut tmp = tempfile().unwrap();
145143
tmp.write(CONTENTS).unwrap();
146144

147-
let offset: libc::off64_t = 5;
148-
lseek64(tmp.as_raw_fd(), offset, Whence::SeekSet).unwrap();
145+
lseek64(tmp.as_raw_fd(), 5, Whence::SeekSet).unwrap();
149146

150147
let mut buf = String::new();
151148
tmp.read_to_string(&mut buf).unwrap();

0 commit comments

Comments
 (0)