Skip to content

Commit 941dc5c

Browse files
mdns: Minor fix of API description and API usage
* Original commit: espressif/esp-idf@c297301
1 parent 525c649 commit 941dc5c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

components/mdns/include/mdns.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -546,6 +546,7 @@ esp_err_t mdns_query_async_delete(mdns_search_once_t* search);
546546
* @param search pointer to search object
547547
* @param timeout time in milliseconds to wait for answers
548548
* @param results pointer to the results of the query
549+
* @param num_results pointer to the number of the actual result items (set to NULL to ignore this return value)
549550
*
550551
* @return
551552
* True if search has finished before or at timeout

examples/protocols/mdns/main/mdns_example_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ static bool check_and_print_result(mdns_search_once_t *search)
146146
{
147147
// Check if any result is available
148148
mdns_result_t * result = NULL;
149-
if (!mdns_query_async_get_results(search, 0, &result)) {
149+
if (!mdns_query_async_get_results(search, 0, &result, NULL)) {
150150
return false;
151151
}
152152

0 commit comments

Comments
 (0)