1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
$NetBSD: patch-ac,v 1.1 2002/02/13 18:43:39 jdolecek Exp $
--- follow.c.orig Wed Feb 13 15:59:06 2002
+++ follow.c Wed Feb 13 15:59:46 2002
@@ -96,7 +96,7 @@
ioctl(0, TIOCGLTC, <csave);
ttyb = ttybsave;
ttyb.sg_flags = (ttyb.sg_flags|O_CBREAK) & ~O_ECHO;
- ioctl(tty_read_fd, TIOCSETP, &ttyb);
+ ioctl(0, TIOCSETP, &ttyb);
ltc = ltcsave;
ltc.t_suspc = -1;
ioctl(0, TIOCSLTC, <c);
@@ -127,7 +127,7 @@
#endif /* USE_SGTTY */
}
-void main(int argc, char *argv[]) {
+int main(int argc, char *argv[]) {
FILE *f;
char c = 0, buf[512];
int d;
|