aboutsummaryrefslogtreecommitdiffstats
path: root/src/platform/linux
diff options
context:
space:
mode:
authortomaka <pierre.krieger1708@gmail.com>2016-01-26 13:15:35 +0100
committertomaka <pierre.krieger1708@gmail.com>2016-01-26 13:15:35 +0100
commit50c7c91c1998c70f26c3c0a478b5c8a8b93edb0c (patch)
treef03a77ab1c6e6dc4baa000653786f77f490646bc /src/platform/linux
parent0faaa590b1a041636a01ec5a25bf27381ad4edec (diff)
parent11bbca7ca73484aa2bdb6ebd74d0b249c038bcad (diff)
downloadglutin-50c7c91c1998c70f26c3c0a478b5c8a8b93edb0c.tar.gz
glutin-50c7c91c1998c70f26c3c0a478b5c8a8b93edb0c.zip
Merge pull request #714 from mmatyas/i8_to_char
Replace `i8` with `libc::c_char`
Diffstat (limited to 'src/platform/linux')
-rw-r--r--src/platform/linux/api_dispatch.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/platform/linux/api_dispatch.rs b/src/platform/linux/api_dispatch.rs
index 8bf0ae5..2373770 100644
--- a/src/platform/linux/api_dispatch.rs
+++ b/src/platform/linux/api_dispatch.rs
@@ -399,8 +399,8 @@ unsafe extern "C" fn x_error_callback(dpy: *mut x11::ffi::Display, event: *mut x
if let Backend::X(ref x) = *BACKEND {
let mut buff: Vec<u8> = Vec::with_capacity(1024);
- (x.xlib.XGetErrorText)(dpy, (*event).error_code as i32, buff.as_mut_ptr() as *mut i8, buff.capacity() as i32);
- let description = CStr::from_ptr(buff.as_mut_ptr() as *const i8).to_string_lossy();
+ (x.xlib.XGetErrorText)(dpy, (*event).error_code as i32, buff.as_mut_ptr() as *mut libc::c_char, buff.capacity() as i32);
+ let description = CStr::from_ptr(buff.as_mut_ptr() as *const libc::c_char).to_string_lossy();
let error = XError {
description: description.into_owned(),