Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 7ac0735caa05ea48e8ad14ec9120f4fd2b8bdcbd 1 parent 97813f2
@doy authored
Showing with 3 additions and 5 deletions.
  1. +3 −5 src/ios.rs
View
8 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);
}
Please sign in to comment.
Something went wrong with that request. Please try again.