diff options
author | Jesse Luehrs <doy@tozt.net> | 2013-04-03 02:36:45 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2013-04-03 02:36:45 -0500 |
commit | 7ac0735caa05ea48e8ad14ec9120f4fd2b8bdcbd (patch) | |
tree | 0e21111d65db99e3bbb3c9082765f2b13c03e7eb /src | |
parent | 97813f271f03881f3be2a68fc30f3a9c62e3c4e0 (diff) | |
download | rust-term-7ac0735caa05ea48e8ad14ec9120f4fd2b8bdcbd.tar.gz rust-term-7ac0735caa05ea48e8ad14ec9120f4fd2b8bdcbd.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/ios.rs | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -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); } |