freebsd-skq/sys/boot/powerpc
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.chrp Increase the boot1 file size on the HFS boot image. 2016-09-16 22:51:37 +00:00
kboot The getsecs() function is implemented in platform- and bootfw-specific 2016-09-22 06:24:40 +00:00
ofw Clean up some FDT-related code in the PowerPC bootloader, improving error 2016-07-01 21:09:30 +00:00
ps3 The getsecs() function is implemented in platform- and bootfw-specific 2016-09-22 06:24:40 +00:00
uboot Convert a couple lingering NO_FORTH conditionals to test MK_FORTH. 2014-12-23 15:42:34 +00:00
Makefile Add kexec-based Linux shim loader for use with the firmware petitboot 2015-01-05 04:33:39 +00:00
Makefile.inc Clean up PowerPC bootloader compiler flags to fix the build with GCC 5.2 2015-12-03 00:08:50 +00:00