aboutsummaryrefslogtreecommitdiffstats
path: root/src/x11/headless.rs
diff options
context:
space:
mode:
authortomaka <pierre.krieger1708@gmail.com>2015-01-20 23:04:39 +0100
committertomaka <pierre.krieger1708@gmail.com>2015-01-20 23:04:39 +0100
commit862baf82204c373d17e2878871826a457529a03f (patch)
treea5fdade766c6f50fd3079b77c0ff9d04dca562ce /src/x11/headless.rs
parent4d12d3ea3d44a4e63297a5a4f342301ac2fa6070 (diff)
parent935e5a36a2bf0109c0366ff86b2636e633cda25d (diff)
downloadglutin-862baf82204c373d17e2878871826a457529a03f.tar.gz
glutin-862baf82204c373d17e2878871826a457529a03f.zip
Merge pull request #215 from akiss77/pr-u8-c_char-upstream
`c_char` isn't always `i8`
Diffstat (limited to 'src/x11/headless.rs')
-rw-r--r--src/x11/headless.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/x11/headless.rs b/src/x11/headless.rs
index 7692832..20d86e3 100644
--- a/src/x11/headless.rs
+++ b/src/x11/headless.rs
@@ -5,7 +5,7 @@ use libc;
use std::{mem, ptr};
use super::ffi;
-fn with_c_str<F, T>(s: &str, f: F) -> T where F: FnOnce(*const i8) -> T {
+fn with_c_str<F, T>(s: &str, f: F) -> T where F: FnOnce(*const libc::c_char) -> T {
use std::ffi::CString;
let c_str = CString::from_slice(s.as_bytes());
f(c_str.as_slice_with_nul().as_ptr())