Skip to content

Commit 417aacc

Browse files
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.
1 parent 9b437d7 commit 417aacc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/sdk/include/sntp.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ uint32 sntp_get_current_timestamp();
1818
/**
1919
* get real time (GTM + 8 time zone)
2020
*/
21-
char* sntp_get_real_time(long t);
21+
char* sntp_get_real_time(time_t t);
2222
/**
2323
* SNTP get time_zone default GMT + 8
2424
*/

0 commit comments

Comments
 (0)