diff options
author | Mattis Marjak <mattis.marjak@defendec.com> | 2015-12-02 20:59:54 +0200 |
---|---|---|
committer | Carl Lerche <me@carllerche.com> | 2016-01-18 21:29:38 -0800 |
commit | 73dd2e05b8d7572cc12f0bf50dbc6cde7d9eda70 (patch) | |
tree | 27586deb79b4ac773f4c4e786b4d38cd31d1d2a0 /test/sys/test_socket.rs | |
parent | cca7ec20eee12cc85f43c6cee85fba693c25159a (diff) | |
download | nix-73dd2e05b8d7572cc12f0bf50dbc6cde7d9eda70.zip |
update libc to 0.2.2
Diffstat (limited to 'test/sys/test_socket.rs')
-rw-r--r-- | test/sys/test_socket.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/sys/test_socket.rs b/test/sys/test_socket.rs index 945638cc..258cde07 100644 --- a/test/sys/test_socket.rs +++ b/test/sys/test_socket.rs @@ -4,6 +4,7 @@ use std::path::Path; use std::str::FromStr; use std::os::unix::io::{AsRawFd, RawFd}; use ports::localhost; +use libc::c_char; #[test] pub fn test_inetv4_addr_to_sock_addr() { @@ -32,7 +33,7 @@ pub fn test_path_to_sock_addr() { let actual = Path::new("/foo/bar"); let addr = UnixAddr::new(actual).unwrap(); - let expect: &'static [i8] = unsafe { mem::transmute(&b"/foo/bar"[..]) }; + let expect: &'static [c_char] = unsafe { mem::transmute(&b"/foo/bar"[..]) }; assert_eq!(&addr.0.sun_path[..8], expect); assert_eq!(addr.path(), Some(actual)); |