summaryrefslogtreecommitdiff
path: root/comms/plptools/patches/patch-aa
blob: adc26402765bd2143d5a9011c3787c235a62df67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
$NetBSD: patch-aa,v 1.2 2001/04/04 07:59:29 skrll Exp $

--- ncpd/mp_serial.c.orig	Mon Jul  5 22:48:56 1999
+++ ncpd/mp_serial.c
@@ -182,7 +182,7 @@
 ser_exit(int fd)
 {
 	struct termios ti;
-	if (ioctl(fd, TCGETS, (caddr_t) & ti) < 0)
+	if (tcgetattr(fd, &ti) < 0)
 		perror("TCGETSW");
 	ti.c_cflag &= ~CRTSCTS;
 	if (tcsetattr(fd, TCSANOW, &ti) < 0)