From 243e3d0d912aff5133e6c7919748d8273a9667ac Mon Sep 17 00:00:00 2001 From: goldsimon Date: Wed, 11 Feb 2009 17:48:34 +0000 Subject: [PATCH] Fixed bug #25544: DHCP_COARSE_TIMER_MSECS could overflow on 16-bit targets --- src/include/lwip/dhcp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/include/lwip/dhcp.h b/src/include/lwip/dhcp.h index 400f81fd..825dba6e 100644 --- a/src/include/lwip/dhcp.h +++ b/src/include/lwip/dhcp.h @@ -18,7 +18,7 @@ extern "C" { /** period (in seconds) of the application calling dhcp_coarse_tmr() */ #define DHCP_COARSE_TIMER_SECS 60 /** period (in milliseconds) of the application calling dhcp_coarse_tmr() */ -#define DHCP_COARSE_TIMER_MSECS (DHCP_COARSE_TIMER_SECS*1000) +#define DHCP_COARSE_TIMER_MSECS (DHCP_COARSE_TIMER_SECS * 1000UL) /** period (in milliseconds) of the application calling dhcp_fine_tmr() */ #define DHCP_FINE_TIMER_MSECS 500