Permalink
Browse files

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
  • Loading branch information...
1 parent 97813f2 commit 7ac0735caa05ea48e8ad14ec9120f4fd2b8bdcbd @doy committed Apr 3, 2013
Showing with 3 additions and 5 deletions.
  1. +3 −5 src/ios.rs
View
@@ -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,17 +33,15 @@ 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;
fn cbreak () -> c_int;
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);
}

0 comments on commit 7ac0735

Please sign in to comment.