svn commit: r362564 - in head/stand: common efi/include efi/libefi
Kyle Evans
kevans at FreeBSD.org
Tue Jun 23 23:52:44 UTC 2020
Author: kevans
Date: Tue Jun 23 23:52:43 2020
New Revision: 362564
URL: https://svnweb.freebsd.org/changeset/base/362564
Log:
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
Modified:
head/stand/common/bootstrap.h
head/stand/efi/include/efilib.h
head/stand/efi/libefi/efihttp.c
Modified: head/stand/common/bootstrap.h
==============================================================================
--- head/stand/common/bootstrap.h Tue Jun 23 23:05:05 2020 (r362563)
+++ head/stand/common/bootstrap.h Tue Jun 23 23:52:43 2020 (r362564)
@@ -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
Modified: head/stand/efi/include/efilib.h
==============================================================================
--- head/stand/efi/include/efilib.h Tue Jun 23 23:05:05 2020 (r362563)
+++ head/stand/efi/include/efilib.h Tue Jun 23 23:52:43 2020 (r362564)
@@ -113,7 +113,6 @@ EFI_STATUS efi_main(EFI_HANDLE Ximage, EFI_SYSTEM_TABL
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);
Modified: head/stand/efi/libefi/efihttp.c
==============================================================================
--- head/stand/efi/libefi/efihttp.c Tue Jun 23 23:05:05 2020 (r362563)
+++ head/stand/efi/libefi/efihttp.c Tue Jun 23 23:52:43 2020 (r362564)
@@ -36,6 +36,7 @@ __FBSDID("$FreeBSD$");
#include <netinet/in_systm.h>
#include <stand.h>
+#include <bootstrap.h>
#include <net.h>
#include <efi.h>
More information about the svn-src-all
mailing list