blob: f0a01424abedbdc7ad163bb1916d4dab1f845f9a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
$NetBSD: patch-ab,v 1.3 2001/04/22 17:43:19 skrll Exp $
--- ncp/mp_serial.c.orig Tue Nov 2 20:47:06 1999
+++ ncp/mp_serial.c
@@ -223,8 +223,8 @@
void ser_exit(int fd)
{
struct termios ti;
- if(ioctl(fd, TCGETS, (caddr_t)&ti) < 0) {
- perror("TCGETSW");
+ if(tcgetattr(fd, &ti) < 0) {
+ perror("TIOCGETA");
}
ti.c_cflag &= ~CRTSCTS;
if(tcsetattr(fd, TCSANOW, &ti) < 0) {
|