mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-02 14:58:22 +00:00
dns_found_callback should take const IP addr
This commit is contained in:
parent
3f4d75c8d6
commit
ae7eeda88a
@ -1811,7 +1811,7 @@ lwip_netconn_do_join_leave_group(struct api_msg_msg *msg)
|
||||
* signaling the semaphore.
|
||||
*/
|
||||
static void
|
||||
lwip_netconn_do_dns_found(const char *name, ip_addr_t *ipaddr, void *arg)
|
||||
lwip_netconn_do_dns_found(const char *name, const ip_addr_t *ipaddr, void *arg)
|
||||
{
|
||||
struct dns_api_msg *msg = (struct dns_api_msg*)arg;
|
||||
|
||||
|
@ -86,7 +86,7 @@ struct local_hostlist_entry {
|
||||
* or NULL if the name could not be found (or on any other error).
|
||||
* @param callback_arg a user-specified callback argument passed to dns_gethostbyname
|
||||
*/
|
||||
typedef void (*dns_found_callback)(const char *name, ip_addr_t *ipaddr, void *callback_arg);
|
||||
typedef void (*dns_found_callback)(const char *name, const ip_addr_t *ipaddr, void *callback_arg);
|
||||
|
||||
void dns_init(void);
|
||||
void dns_tmr(void);
|
||||
|
Loading…
Reference in New Issue
Block a user