freebsd-dev/sys/boot/efi
Stephen J. Kiernan 5c6b397ff1 The getsecs() function is implemented in platform- and bootfw-specific
files and, in a number of these places, there were problems with how they
were declared.

Some used int return instead of time_t. On some architectures the bit
width of time_t did not naturally fit into an integer and could lead to
some unexpected behavior. (For example, 32-bit ARM builds uses a 64-bit
time_t.)

Make sure the function prototypes always specify void for the argument
list when they do not have any arguemnts, otherwise some compilers can
complain about the prototype.

Reported by:	Kevin Zheng
Reviewed by:	sjg
Approved by:	sjg (mentor)
Obtained from:	Juniper Networks, Inc.
MFC after:	1 month
Differential Revision:	https://reviews.freebsd.org/D7463
2016-09-22 06:24:40 +00:00
..
boot1 Set UEFI boot loader PE/COFF timestamps to known value for reproducible builds 2016-08-31 21:35:38 +00:00
fdt
include Add comment for the closing guard. 2016-09-18 18:40:27 +00:00
libefi The getsecs() function is implemented in platform- and bootfw-specific 2016-09-22 06:24:40 +00:00
loader Simple post-mortem reporter for amd64 loader.efi. 2016-09-21 10:22:46 +00:00
Makefile ms_abi is supported with gcc 4.5 or newer, so build it with gcc if it 2016-03-15 05:17:31 +00:00
Makefile.inc Also set -fshort-wchar on arm64, this fixes parsing strings from UEFI, 2016-06-08 23:23:16 +00:00