freebsd-skq/sys/boot/ofw/libofw
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
..
devicename.c
elf_freebsd.c
libofw.h
Makefile Add more .NOMETA missed in r291320 2016-03-11 23:45:51 +00:00
ofw_console.c
ofw_copy.c
ofw_disk.c A new implementation of the loader block cache 2016-04-18 23:09:22 +00:00
ofw_memory.c
ofw_module.c
ofw_net.c
ofw_reboot.c
ofw_time.c The getsecs() function is implemented in platform- and bootfw-specific 2016-09-22 06:24:40 +00:00
openfirm.c
openfirm.h
ppc64_elf_freebsd.c