From 4a1bb98b261e1a522f32d97cce52309cec6d3818 Mon Sep 17 00:00:00 2001 From: KATO Takenori Date: Thu, 4 Mar 1999 10:45:06 +0000 Subject: [PATCH] boot2 doesn't need to say 'Can't find file boot.config.' Submitted by: IMAI Takeshi --- sys/boot/pc98/boot2/boot.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/sys/boot/pc98/boot2/boot.c b/sys/boot/pc98/boot2/boot.c index 0b4c3c4bac1..5d5b5d6959d 100644 --- a/sys/boot/pc98/boot2/boot.c +++ b/sys/boot/pc98/boot2/boot.c @@ -24,7 +24,7 @@ * the rights to redistribute these changes. * * from: Mach, [92/04/03 16:51:14 rvb] - * $Id: boot.c,v 1.19 1998/10/11 15:09:14 kato Exp $ + * $Id: boot.c,v 1.1 1999/02/03 08:39:08 kato Exp $ */ @@ -373,10 +373,7 @@ readfile(char *path, char *buf, size_t nbytes) buf[0] = '\0'; name = path; openstatus = openrd(); - if (openstatus != 0) { - if (openstatus > 0) - printf("Can't find file %s\n", name); - } else { + if (openstatus == 0) { /* XXX no way to determine file size. */ read(buf, nbytes); }