sntp: revert 2 -Wconversion changes (see bug #51538)

This commit is contained in:
goldsimon 2017-11-17 21:39:23 +01:00
parent db3a4e3158
commit 0853d1e7d1

View File

@ -112,7 +112,7 @@
#define SNTP_OFFSET_TRANSMIT_TIME 40
/* Number of seconds between 1970 and Feb 7, 2036 06:28:16 UTC (epoch 1) */
#define DIFF_SEC_1970_2036 ((s32_t)2085978496L)
#define DIFF_SEC_1970_2036 ((u32_t)2085978496L)
/** Convert NTP timestamp fraction to microseconds.
*/
@ -270,7 +270,7 @@ static const char *
sntp_format_time(s32_t sec)
{
time_t ut;
ut = (time_t)((time_t)sec + (time_t)DIFF_SEC_1970_2036);
ut = (u32_t)((u32_t)sec + DIFF_SEC_1970_2036);
return ctime(&ut);
}
#endif /* LWIP_DEBUG && !sntp_format_time */