Sync with rev 1.9 of sys/arch/i386/stand/lib/loadfile.c:

another nit in error handling: don't try to print out a NULL
	filename (which means "use default" and is dealt with properly
	by open())
This commit is contained in:
simonb 1999-04-17 11:24:16 +00:00
parent 982c55e22c
commit cbd32a724f
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: loadfile.c,v 1.3 1999/04/10 01:52:33 simonb Exp $ */
/* $NetBSD: loadfile.c,v 1.4 1999/04/17 11:24:16 simonb Exp $ */
/*-
* Copyright (c) 1997 The NetBSD Foundation, Inc.
@ -133,7 +133,7 @@ loadfile(fname, marks, flags)
/* Open the file. */
if ((fd = open(fname, 0)) < 0) {
WARN(("open %s", fname));
WARN(("open %s", fname ? fname : "<default>"));
return -1;
}
@ -162,7 +162,7 @@ loadfile(fname, marks, flags)
{
rval = 1;
errno = EFTYPE;
WARN(("%s", fname));
WARN(("%s", fname ? fname : "<default>"));
}
if (rval == 0) {