freebsd-dev/contrib/isc-dhcp/common
Dag-Erling Smørgrav 9d617478bd Fix a number of incorrect assumptions regarding the size of time_t.
The code has its own TIME type, which is actually defined to time_t,
but it still used u_int32_t in some places.

In addition, dhclient not only had two separate global cur_time
variables, one of which was defined as u_int32_t and the other as
TIME, but cur_time was sometimes shadowed by local variables, leading
to widespread confusion as to which of these variable was being
referenced.

There is a lesson in here somewhere: a decent compiler with warnings
enabled should have caught all of this long before it became a
problem.

This patch has been submitted to the vendor, but it will likely be
some time before they release a version that includes it.

Approved by:	mbr
2004-07-06 15:15:14 +00:00
..
alloc.c Import ISC DHCP 3.0.1 RC14 client. 2004-06-26 10:34:24 +00:00
bpf.c Import ISC DHCP 3.0.1 RC14 client. 2004-06-26 10:34:24 +00:00
comapi.c Import ISC DHCP 3.0.1 RC14 client. 2004-06-26 10:34:24 +00:00
conflex.c Import ISC DHCP 3.0.1 RC14 client. 2004-06-26 10:34:24 +00:00
ctrace.c Import ISC DHCP 3.0.1 RC14 client. 2004-06-26 10:34:24 +00:00
dhcp-eval.5 Import ISC DHCP 3.0.1 RC14 client. 2004-06-26 10:34:24 +00:00
dhcp-options.5 Resolve conflicts. 2004-06-26 10:37:42 +00:00
discover.c Import ISC DHCP 3.0.1 RC14 client. 2004-06-26 10:34:24 +00:00
dispatch.c Fix a number of incorrect assumptions regarding the size of time_t. 2004-07-06 15:15:14 +00:00
dlpi.c Import ISC DHCP 3.0.1 RC14 client. 2004-06-26 10:34:24 +00:00
dns.c Import ISC DHCP 3.0.1 RC14 client. 2004-06-26 10:34:24 +00:00
ethernet.c Import ISC DHCP 3.0.1 RC14 client. 2004-06-26 10:34:24 +00:00
execute.c Import ISC DHCP 3.0.1 RC14 client. 2004-06-26 10:34:24 +00:00
fddi.c Import ISC DHCP 3.0.1 RC14 client. 2004-06-26 10:34:24 +00:00
icmp.c Import ISC DHCP 3.0.1 RC14 client. 2004-06-26 10:34:24 +00:00
inet.c Import ISC DHCP 3.0.1 RC14 client. 2004-06-26 10:34:24 +00:00
iscprint.c Import ISC DHCP 3.0.1 RC14 client. 2004-06-26 10:34:24 +00:00
lpf.c Import ISC DHCP 3.0.1 RC14 client. 2004-06-26 10:34:24 +00:00
Makefile.dist Import ISC DHCP 3.0.1 RC14 client. 2004-06-26 10:34:24 +00:00
memory.c Import ISC DHCP 3.0.1 RC14 client. 2004-06-26 10:34:24 +00:00
nit.c Import ISC DHCP 3.0.1 RC14 client. 2004-06-26 10:34:24 +00:00
options.c Import ISC DHCP 3.0.1 RC14 client. 2004-06-26 10:34:24 +00:00
packet.c Import ISC DHCP 3.0.1 RC14 client. 2004-06-26 10:34:24 +00:00
parse.c Use int32_t to convert the leasetime to fix support for platforms 2004-06-26 23:17:27 +00:00
print.c Import ISC DHCP 3.0.1 RC14 client. 2004-06-26 10:34:24 +00:00
raw.c Import ISC DHCP 3.0.1 RC14 client. 2004-06-26 10:34:24 +00:00
resolv.c Import ISC DHCP 3.0.1 RC14 client. 2004-06-26 10:34:24 +00:00
socket.c Import ISC DHCP 3.0.1 RC14 client. 2004-06-26 10:34:24 +00:00
tables.c Resolve conflicts. 2004-06-26 10:37:42 +00:00
tr.c Import ISC DHCP 3.0.1 RC14 client. 2004-06-26 10:34:24 +00:00
tree.c Import ISC DHCP 3.0.1 RC14 client. 2004-06-26 10:34:24 +00:00
upf.c Import ISC DHCP 3.0.1 RC14 client. 2004-06-26 10:34:24 +00:00