Skip to content

Commit eea9fa7

Browse files
committed
Use libc types in loadavg and status::tests
1 parent 672b790 commit eea9fa7

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/loadavg.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
33
use std::fs::File;
44
use std::io::Result;
5-
use std::os::unix::raw::pid_t;
65

6+
use libc::pid_t;
77
use nom::{line_ending, space};
88

99
use parsers::{map_result, parse_f32, parse_i32, parse_u32, read_to_end};

src/pid/status.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,8 @@ mod tests {
314314
extern crate test;
315315

316316
use std::fs::File;
317-
use std::os::unix::raw::gid_t;
317+
318+
use libc::gid_t;
318319

319320
use parsers::read_to_end;
320321
use parsers::tests::unwrap;

0 commit comments

Comments
 (0)