From 221467dbd4b9ccb313778f7f9afad39d99ac586c Mon Sep 17 00:00:00 2001 From: Charles Longeau Date: Tue, 25 Sep 2007 09:55:34 +0000 Subject: remove unneeded feof with help and ok ray@ --- sbin/restore/tape.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'sbin') diff --git a/sbin/restore/tape.c b/sbin/restore/tape.c index efd5b525cfe..033e5332a59 100644 --- a/sbin/restore/tape.c +++ b/sbin/restore/tape.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tape.c,v 1.35 2007/09/13 09:19:56 chl Exp $ */ +/* $OpenBSD: tape.c,v 1.36 2007/09/25 09:55:33 chl Exp $ */ /* $NetBSD: tape.c,v 1.26 1997/04/15 07:12:25 lukem Exp $ */ /* @@ -39,7 +39,7 @@ #if 0 static char sccsid[] = "@(#)tape.c 8.6 (Berkeley) 9/13/94"; #else -static const char rcsid[] = "$OpenBSD: tape.c,v 1.35 2007/09/13 09:19:56 chl Exp $"; +static const char rcsid[] = "$OpenBSD: tape.c,v 1.36 2007/09/25 09:55:33 chl Exp $"; #endif #endif /* not lint */ @@ -335,8 +335,7 @@ again: do { fprintf(stderr, "Specify next volume #: "); (void)fflush(stderr); - if (fgets(buf, sizeof buf, terminal) == NULL || - feof(terminal)) + if (fgets(buf, sizeof buf, terminal) == NULL) exit(1); buf[strcspn(buf, "\n")] = '\0'; -- cgit v1.2.3