Don't build an unused array of kernel names when HAVE_GETBOOTFILE is

defined.

Don't use the newfangled C features to waste time building the array
at runtime when HAVE_GETBOOTFILE is not defined.
This commit is contained in:
Bruce Evans 1994-11-14 07:51:11 +00:00
parent d6238d7915
commit 2f1d65aabc

View File

@ -430,7 +430,8 @@ getoffsets(filex, tick_off, tickadj_off, dosync_off, noprintf_off)
{""},
};
#endif
char *kernels[] = {
#ifndef HAVE_GETBOOTFILE
static char *kernels[] = {
"/kernel",
"/vmunix",
"/unix",
@ -440,6 +441,7 @@ getoffsets(filex, tick_off, tickadj_off, dosync_off, noprintf_off)
"/netbsd",
NULL
};
#endif
struct stat stbuf;
#ifdef HAVE_GETBOOTFILE