freebsd-dev/sys/boot/i386
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
..
boot0 Don't use -N to set the OMAGIC with data and text writeable and data 2016-09-03 15:26:28 +00:00
boot0sio
boot2 Don't use -N to set the OMAGIC with data and text writeable and data 2016-09-03 15:26:28 +00:00
btx Don't use -N to set the OMAGIC with data and text writeable and data 2016-09-03 15:26:28 +00:00
cdboot Don't use -N to set the OMAGIC with data and text writeable and data 2016-09-03 15:26:28 +00:00
common Add missing prototype for getchar(..) 2016-05-13 10:59:46 +00:00
gptboot Don't use -N to set the OMAGIC with data and text writeable and data 2016-09-03 15:26:28 +00:00
gptzfsboot Don't use -N to set the OMAGIC with data and text writeable and data 2016-09-03 15:26:28 +00:00
kgzldr
libfirewire sys/boot: spelling fixes in comments. 2016-04-30 00:26:38 +00:00
libi386 The getsecs() function is implemented in platform- and bootfw-specific 2016-09-22 06:24:40 +00:00
loader Netboot: allow both tftpfs and nfs in both pxeboot and loader.efi 2016-08-31 13:16:40 +00:00
mbr Don't use -N to set the OMAGIC with data and text writeable and data 2016-09-03 15:26:28 +00:00
pmbr Don't use -N to set the OMAGIC with data and text writeable and data 2016-09-03 15:26:28 +00:00
pxeldr pxeboot: Add nfs.read_size tunable. 2016-09-08 09:11:13 +00:00
zfsboot Don't use -N to set the OMAGIC with data and text writeable and data 2016-09-03 15:26:28 +00:00
zfsloader DIRDEPS_BUILD: Update dependencies. 2016-03-21 18:02:26 +00:00
boot.ldscript Don't use -N to set the OMAGIC with data and text writeable and data 2016-09-03 15:26:28 +00:00
Makefile Restore kgzldr on i386 only 2016-02-08 16:59:52 +00:00
Makefile.inc Don't use -N to set the OMAGIC with data and text writeable and data 2016-09-03 15:26:28 +00:00