Skip to content

Commit

Permalink
Fix sntp_get_real_time prototype in header (#7707)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
earlephilhower committed Nov 14, 2020
1 parent 9b437d7 commit 417aacc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/sdk/include/sntp.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down

0 comments on commit 417aacc

Please sign in to comment.