mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-04 14:29:39 +00:00
Document that sntp_setservername doesn't copy the string
I was expecting the string to be duplicated, doing a Google search shows others did as well.
This commit is contained in:
parent
574bd6e5aa
commit
35cbad52cc
@ -914,7 +914,8 @@ sntp_getkodreceived(u8_t idx)
|
||||
* Initialize one of the NTP servers by name
|
||||
*
|
||||
* @param idx the index of the NTP server to set must be < SNTP_MAX_SERVERS
|
||||
* @param server DNS name of the NTP server to set, to be resolved at contact time
|
||||
* @param server DNS name of the NTP server to set, to be resolved at contact
|
||||
* time. Note sntp stores the pointer, it doesn't copy the string.
|
||||
*/
|
||||
void
|
||||
sntp_setservername(u8_t idx, const char *server)
|
||||
|
Loading…
Reference in New Issue
Block a user