From 7ac0735caa05ea48e8ad14ec9120f4fd2b8bdcbd Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Wed, 3 Apr 2013 02:36:45 -0500 Subject: just use c_void here there's no actual reason to use a special type, since it's not user-visible, and using one triggers rust/#5690 at the moment --- src/ios.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/ios.rs b/src/ios.rs index fc03c79..168d3a0 100644 --- a/src/ios.rs +++ b/src/ios.rs @@ -1,4 +1,4 @@ -use core::libc::{c_int,c_uint}; +use core::libc::{c_int,c_uint,c_void}; use util::guard; pub fn cooked () -> int { @@ -33,8 +33,6 @@ pub fn size() -> (uint, uint) { (cols as uint, rows as uint) } -enum struct_termios {} - #[link_name = "termios_wrapper"] extern mod c { fn cooked () -> c_int; @@ -42,8 +40,8 @@ extern mod c { fn raw () -> c_int; fn echo (enable: c_int) -> c_int; - fn get() -> *struct_termios; - fn set(t: *struct_termios); + fn get() -> *c_void; + fn set(t: *c_void); fn size(cols: *c_uint, rows: *c_uint); } -- cgit v1.2.3-54-g00ecf