summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorCharles Longeau <chl@cvs.openbsd.org>2007-09-25 09:55:34 +0000
committerCharles Longeau <chl@cvs.openbsd.org>2007-09-25 09:55:34 +0000
commit221467dbd4b9ccb313778f7f9afad39d99ac586c (patch)
treee46f84af58d262cc415016ae2ed9792e65e74955 /sbin
parentb641a8cf4859a2eb468bc77f6ce98a4b7eeeb759 (diff)
remove unneeded feof
with help and ok ray@
Diffstat (limited to 'sbin')
-rw-r--r--sbin/restore/tape.c7
1 files changed, 3 insertions, 4 deletions
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';