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:
parent
d6238d7915
commit
2f1d65aabc
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user