From 11bbca7ca73484aa2bdb6ebd74d0b249c038bcad Mon Sep 17 00:00:00 2001 From: Mátyás Mustoha Date: Tue, 26 Jan 2016 12:44:34 +0100 Subject: Replace `i8` with `libc::c_char` --- src/platform/linux/api_dispatch.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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 = 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(), -- cgit v1.2.3