Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/ping 0 -> STDIN_FILENO
details: https://anonhg.NetBSD.org/src/rev/8a98578347a4
branches: trunk
changeset: 474325:8a98578347a4
user: kleink <kleink%NetBSD.org@localhost>
date: Sat Jul 03 15:09:51 1999 +0000
description:
0 -> STDIN_FILENO
diffstat:
sbin/ping/ping.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 83ef1e504a92 -r 8a98578347a4 sbin/ping/ping.c
--- a/sbin/ping/ping.c Sat Jul 03 14:42:39 1999 +0000
+++ b/sbin/ping/ping.c Sat Jul 03 15:09:51 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ping.c,v 1.50 1999/07/02 04:53:24 itojun Exp $ */
+/* $NetBSD: ping.c,v 1.51 1999/07/03 15:09:51 kleink Exp $ */
/*
* Copyright (c) 1989, 1993
@@ -62,7 +62,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: ping.c,v 1.50 1999/07/02 04:53:24 itojun Exp $");
+__RCSID("$NetBSD: ping.c,v 1.51 1999/07/03 15:09:51 kleink Exp $");
#endif
#include <stdio.h>
@@ -617,7 +617,7 @@
if (tcgetattr (0, &ts) != -1) {
reset_kerninfo = !(ts.c_lflag & NOKERNINFO);
ts.c_lflag |= NOKERNINFO;
- tcsetattr (0, TCSANOW, &ts);
+ tcsetattr (STDIN_FILENO, TCSANOW, &ts);
}
#endif
@@ -1308,7 +1308,7 @@
if (reset_kerninfo && tcgetattr (0, &ts) != -1) {
ts.c_lflag &= ~NOKERNINFO;
- tcsetattr (0, TCSANOW, &ts);
+ tcsetattr (STDIN_FILENO, TCSANOW, &ts);
}
(void)signal(SIGINFO, SIG_IGN);
#else
Home |
Main Index |
Thread Index |
Old Index