From 941dc5c42fff4a884febff13505b191d93e75c42 Mon Sep 17 00:00:00 2001 From: David Cermak Date: Fri, 10 Dec 2021 10:30:13 +0100 Subject: [PATCH] mdns: Minor fix of API description and API usage * Original commit: espressif/esp-idf@c297301ecc350f8315d7eaf78c72b4aba68d422a --- components/mdns/include/mdns.h | 1 + examples/protocols/mdns/main/mdns_example_main.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/components/mdns/include/mdns.h b/components/mdns/include/mdns.h index 4037fda6c..40ad12673 100644 --- a/components/mdns/include/mdns.h +++ b/components/mdns/include/mdns.h @@ -546,6 +546,7 @@ esp_err_t mdns_query_async_delete(mdns_search_once_t* search); * @param search pointer to search object * @param timeout time in milliseconds to wait for answers * @param results pointer to the results of the query + * @param num_results pointer to the number of the actual result items (set to NULL to ignore this return value) * * @return * True if search has finished before or at timeout diff --git a/examples/protocols/mdns/main/mdns_example_main.c b/examples/protocols/mdns/main/mdns_example_main.c index f53e06031..94e9140ea 100644 --- a/examples/protocols/mdns/main/mdns_example_main.c +++ b/examples/protocols/mdns/main/mdns_example_main.c @@ -146,7 +146,7 @@ static bool check_and_print_result(mdns_search_once_t *search) { // Check if any result is available mdns_result_t * result = NULL; - if (!mdns_query_async_get_results(search, 0, &result)) { + if (!mdns_query_async_get_results(search, 0, &result, NULL)) { return false; }