summaryrefslogtreecommitdiff
path: root/test/sys/test_socket.rs
diff options
context:
space:
mode:
authorMattis Marjak <mattis.marjak@defendec.com>2015-12-02 20:59:54 +0200
committerCarl Lerche <me@carllerche.com>2016-01-18 21:29:38 -0800
commit73dd2e05b8d7572cc12f0bf50dbc6cde7d9eda70 (patch)
tree27586deb79b4ac773f4c4e786b4d38cd31d1d2a0 /test/sys/test_socket.rs
parentcca7ec20eee12cc85f43c6cee85fba693c25159a (diff)
downloadnix-73dd2e05b8d7572cc12f0bf50dbc6cde7d9eda70.zip
update libc to 0.2.2
Diffstat (limited to 'test/sys/test_socket.rs')
-rw-r--r--test/sys/test_socket.rs3
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));