aboutsummaryrefslogtreecommitdiff
path: root/stand
diff options
context:
space:
mode:
authorKyle Evans <kevans@FreeBSD.org>2020-06-23 23:52:43 +0000
committerKyle Evans <kevans@FreeBSD.org>2020-06-23 23:52:43 +0000
commit28e002cd3e8a3c40c34a41f8b1ac624d334e4b9a (patch)
treed98f2efb3e8cfb06bf8ed9d8f502b3a8339a1649 /stand
parent87c0bf77d9bd9db35376baeb6fee7c6a95d54a82 (diff)
downloadsrc-28e002cd3e8a3c40c34a41f8b1ac624d334e4b9a.tar.gz
src-28e002cd3e8a3c40c34a41f8b1ac624d334e4b9a.zip
stand: remove redundant declarations
These are picked out by the amd64-gcc6 build; time() is declared in <time.h> and delay() is declared in <bootstrap.h>. These are the correct places for these in stand/, so remove the duplicate declarations and make sure the delay() consumer in libefi that depended on the extra delay() declaration includes <bootstrap.h>. MFC after: 1 week
Notes
Notes: svn path=/head/; revision=362564
Diffstat (limited to 'stand')
-rw-r--r--stand/common/bootstrap.h2
-rw-r--r--stand/efi/include/efilib.h1
-rw-r--r--stand/efi/libefi/efihttp.c1
3 files changed, 1 insertions, 3 deletions
diff --git a/stand/common/bootstrap.h b/stand/common/bootstrap.h
index 2be6538efe4c..809859c276b9 100644
--- a/stand/common/bootstrap.h
+++ b/stand/common/bootstrap.h
@@ -345,8 +345,6 @@ void delay(int delay);
void dev_cleanup(void);
-time_t time(time_t *tloc);
-
#ifndef CTASSERT
#define CTASSERT(x) _Static_assert(x, "compile-time assertion failed")
#endif
diff --git a/stand/efi/include/efilib.h b/stand/efi/include/efilib.h
index 63ddecb96bdd..6f1dbac98730 100644
--- a/stand/efi/include/efilib.h
+++ b/stand/efi/include/efilib.h
@@ -113,7 +113,6 @@ EFI_STATUS efi_main(EFI_HANDLE Ximage, EFI_SYSTEM_TABLE* Xsystab);
EFI_STATUS main(int argc, CHAR16 *argv[]);
void efi_exit(EFI_STATUS status) __dead2;
-void delay(int usecs);
/* EFI environment initialization. */
void efi_init_environment(void);
diff --git a/stand/efi/libefi/efihttp.c b/stand/efi/libefi/efihttp.c
index 2894709ca03c..074c85dcdef0 100644
--- a/stand/efi/libefi/efihttp.c
+++ b/stand/efi/libefi/efihttp.c
@@ -36,6 +36,7 @@ __FBSDID("$FreeBSD$");
#include <netinet/in_systm.h>
#include <stand.h>
+#include <bootstrap.h>
#include <net.h>
#include <efi.h>