summaryrefslogtreecommitdiff
path: root/libc/termios/tcsetattr.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-01-09 14:13:19 +0000
committerEric Andersen <andersen@codepoet.org>2002-01-09 14:13:19 +0000
commit90374108bb8e84f45ef3186f8d569cf1eb4e446d (patch)
treecdb2169ecf3be304c8ad01b4da85a28dde83c513 /libc/termios/tcsetattr.c
parent1ad690545c7079115f76918f483c33c120e48204 (diff)
Rework termios wrapping code to try and do the right thing.
-Erik
Diffstat (limited to 'libc/termios/tcsetattr.c')
-rw-r--r--libc/termios/tcsetattr.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/libc/termios/tcsetattr.c b/libc/termios/tcsetattr.c
index 9637c0fa6..9f8c172bd 100644
--- a/libc/termios/tcsetattr.c
+++ b/libc/termios/tcsetattr.c
@@ -18,7 +18,6 @@
#include <errno.h>
#include <string.h>
-#include <termios.h>
#include <sys/ioctl.h>
#include <sys/types.h>
@@ -47,11 +46,10 @@
/* Set the state of FD to *TERMIOS_P. */
-int
-tcsetattr (fd, optional_actions, termios_p)
+int tcsetattr (fd, optional_actions, termios_p)
int fd;
int optional_actions;
- const struct termios *termios_p;
+ const struct libc_termios *termios_p;
{
struct __kernel_termios k_termios;
unsigned long int cmd;