From 4ec7e16806e4012036b7349babd5b361dae21278 Mon Sep 17 00:00:00 2001 From: "Earle F. Philhower, III" Date: Fri, 13 Nov 2020 18:00:27 -0800 Subject: [PATCH] Fix sntp_get_real_time prototype in header 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 bb85e678b6..23275f1826 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 */