Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/ktruss call clearerr for the right file pointer.
details: https://anonhg.NetBSD.org/src/rev/f02ab127c1eb
branches: trunk
changeset: 475004:f02ab127c1eb
user: enami <enami%NetBSD.org@localhost>
date: Thu Jul 29 01:53:26 1999 +0000
description:
call clearerr for the right file pointer.
diffstat:
usr.bin/ktruss/dump.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 8d35196f7b4c -r f02ab127c1eb usr.bin/ktruss/dump.c
--- a/usr.bin/ktruss/dump.c Thu Jul 29 01:12:57 1999 +0000
+++ b/usr.bin/ktruss/dump.c Thu Jul 29 01:53:26 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dump.c,v 1.4 1999/07/28 15:38:46 darrenr Exp $ */
+/* $NetBSD: dump.c,v 1.5 1999/07/29 01:53:26 enami Exp $ */
/*-
* Copyright (c) 1988, 1993
@@ -43,7 +43,7 @@
#if 0
static char sccsid[] = "@(#)kdump.c 8.4 (Berkeley) 4/28/95";
#endif
-__RCSID("$NetBSD: dump.c,v 1.4 1999/07/28 15:38:46 darrenr Exp $");
+__RCSID("$NetBSD: dump.c,v 1.5 1999/07/29 01:53:26 enami Exp $");
#endif /* not lint */
#include <sys/param.h>
@@ -271,7 +271,7 @@
while ((i = fread(buf, size, num, fp)) == 0 && tail) {
(void)sleep(1);
- clearerr(stdin);
+ clearerr(fp);
}
return (i);
}
Home |
Main Index |
Thread Index |
Old Index