diff options
| author | linouxis9 <[email protected]> | 2018-05-07 15:31:54 +0200 |
|---|---|---|
| committer | linouxis9 <[email protected]> | 2018-05-07 15:35:20 +0200 |
| commit | 4901431b02227416b08e5fbc9a7ac3f5ac2f44a7 (patch) | |
| tree | 7fb75cf805b8f0e9b7f169af37c9d2aa0c4aded6 /ctr-std/src/sys/unix/net.rs | |
| parent | Merge pull request #66 from FenrirWolf/swkbd (diff) | |
| download | archived-ctru-rs-4901431b02227416b08e5fbc9a7ac3f5ac2f44a7.tar.xz archived-ctru-rs-4901431b02227416b08e5fbc9a7ac3f5ac2f44a7.zip | |
Update for latest nightly 2018-05-06
Diffstat (limited to 'ctr-std/src/sys/unix/net.rs')
| -rw-r--r-- | ctr-std/src/sys/unix/net.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ctr-std/src/sys/unix/net.rs b/ctr-std/src/sys/unix/net.rs index a056aec..94f757d 100644 --- a/ctr-std/src/sys/unix/net.rs +++ b/ctr-std/src/sys/unix/net.rs @@ -59,7 +59,7 @@ pub fn cvt_gai(err: c_int) -> io::Result<()> { } let detail = unsafe { - str::from_utf8(CStr::from_ptr(libc::gai_strerror(err)).to_bytes()).unwrap() + str::from_utf8(CStr::from_ptr(libc::gai_strerror(err) as *const _).to_bytes()).unwrap() .to_owned() }; Err(io::Error::new(io::ErrorKind::Other, |