From 417aacc5092a709fd99125f1bd729d8db282d61e Mon Sep 17 00:00:00 2001 From: "Earle F. Philhower, III" Date: Sat, 14 Nov 2020 00:38:29 -0800 Subject: [PATCH] Fix sntp_get_real_time prototype in header (#7707) sntp_get_real_time takes a `time_t` in the core, but in the header it was listed as `long`. Make them both match by changing the header. --- tools/sdk/include/sntp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/sdk/include/sntp.h b/tools/sdk/include/sntp.h index bb85e678b..23275f182 100644 --- a/tools/sdk/include/sntp.h +++ b/tools/sdk/include/sntp.h @@ -18,7 +18,7 @@ uint32 sntp_get_current_timestamp(); /** * get real time (GTM + 8 time zone) */ -char* sntp_get_real_time(long t); +char* sntp_get_real_time(time_t t); /** * SNTP get time_zone default GMT + 8 */