diff options
Diffstat (limited to 'src/term.rs')
-rw-r--r-- | src/term.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/term.rs b/src/term.rs index 15b9b0d..4c2ba18 100644 --- a/src/term.rs +++ b/src/term.rs @@ -25,7 +25,7 @@ mod c { pub unsafe fn dimensions() -> Winsize { let mut window: Winsize = zeroed(); - ioctl(STDOUT_FILENO, TIOCGWINSZ, &mut window as *mut Winsize); + ioctl(STDOUT_FILENO, TIOCGWINSZ, &mut window); window } } |