diff options
author | bde <bde@FreeBSD.org> | 1994-11-14 07:51:11 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1994-11-14 07:51:11 +0000 |
commit | 3c1db6da25d8fb80057a3727acf12d8752b32d09 (patch) | |
tree | a8767b141fc053c8b67259ea35f23cb3c97ad1d1 /usr.sbin/xntpd/util/tickadj.c | |
parent | 27506ef37ac78280c40e72195921097911604c0c (diff) | |
download | FreeBSD-src-3c1db6da25d8fb80057a3727acf12d8752b32d09.zip FreeBSD-src-3c1db6da25d8fb80057a3727acf12d8752b32d09.tar.gz |
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.
Diffstat (limited to 'usr.sbin/xntpd/util/tickadj.c')
-rw-r--r-- | usr.sbin/xntpd/util/tickadj.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/xntpd/util/tickadj.c b/usr.sbin/xntpd/util/tickadj.c index 41d4c46..75d2ab7 100644 --- a/usr.sbin/xntpd/util/tickadj.c +++ b/usr.sbin/xntpd/util/tickadj.c @@ -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 |