Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/bebox/stand/boot correct tgets loop.
details: https://anonhg.NetBSD.org/src/rev/035d9e8c10c0
branches: trunk
changeset: 474095:035d9e8c10c0
user: sakamoto <sakamoto%NetBSD.org@localhost>
date: Mon Jun 28 01:35:11 1999 +0000
description:
correct tgets loop.
diffstat:
sys/arch/bebox/stand/boot/boot.c | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
diffs (24 lines):
diff -r f225aa5e9bc7 -r 035d9e8c10c0 sys/arch/bebox/stand/boot/boot.c
--- a/sys/arch/bebox/stand/boot/boot.c Mon Jun 28 01:32:49 1999 +0000
+++ b/sys/arch/bebox/stand/boot/boot.c Mon Jun 28 01:35:11 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: boot.c,v 1.9 1999/06/28 01:20:43 sakamoto Exp $ */
+/* $NetBSD: boot.c,v 1.10 1999/06/28 01:35:11 sakamoto Exp $ */
/*
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -147,11 +147,9 @@
extern int tgets __P((char *buf));
ret:
- do {
- printf("\nBoot: ");
-
- memset(namebuf, 0, sizeof (namebuf));
- } while (tgets(namebuf) == -1);
+ printf("\nBoot: ");
+ memset(namebuf, 0, sizeof (namebuf));
+ (void)tgets(namebuf);
ptr = namebuf;
#ifdef DBMONITOR
Home |
Main Index |
Thread Index |
Old Index