From 0853d1e7d10838d2720190c48190bed4b0a2cd33 Mon Sep 17 00:00:00 2001 From: goldsimon Date: Fri, 17 Nov 2017 21:39:23 +0100 Subject: [PATCH] sntp: revert 2 -Wconversion changes (see bug #51538) --- src/apps/sntp/sntp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/apps/sntp/sntp.c b/src/apps/sntp/sntp.c index 3ebf3acb..8040cd4b 100644 --- a/src/apps/sntp/sntp.c +++ b/src/apps/sntp/sntp.c @@ -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 */