dns_found_callback should take const IP addr

This commit is contained in:
Dirk Ziegelmeier 2015-09-30 22:07:03 +02:00 committed by sg
parent 3f4d75c8d6
commit ae7eeda88a
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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);