mdns: Minor fix of API description and API usage

* Original commit: espressif/esp-idf@c297301ecc
This commit is contained in:
David Cermak
2021-12-10 10:30:13 +01:00
committed by suren-gabrielyan-espressif
parent 525c64915e
commit 941dc5c42f
2 changed files with 2 additions and 1 deletions

View File

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

View File

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