Skip to content

Commit

Permalink
mdns: return ESP_OK rather than ERR_OK in API functions
Browse files Browse the repository at this point in the history
* Original commit: espressif/esp-idf@2386113
  • Loading branch information
gjc13 authored and suren-gabrielyan-espressif committed May 27, 2022
1 parent 46f28a8 commit 8a12082
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions components/mdns/mdns.c
Original file line number Diff line number Diff line change
Expand Up @@ -4801,7 +4801,7 @@ esp_err_t mdns_hostname_set(const char * hostname)
return ESP_ERR_NO_MEM;
}
xTaskNotifyWait(0, 0, NULL, portMAX_DELAY);
return ERR_OK;
return ESP_OK;
}

esp_err_t mdns_delegate_hostname_add(const char * hostname, const mdns_ip_addr_t * address_list)
Expand Down Expand Up @@ -4831,7 +4831,7 @@ esp_err_t mdns_delegate_hostname_add(const char * hostname, const mdns_ip_addr_t
free(action);
return ESP_ERR_NO_MEM;
}
return ERR_OK;
return ESP_OK;
}

esp_err_t mdns_delegate_hostname_remove(const char * hostname)
Expand Down Expand Up @@ -4860,7 +4860,7 @@ esp_err_t mdns_delegate_hostname_remove(const char * hostname)
free(action);
return ESP_ERR_NO_MEM;
}
return ERR_OK;
return ESP_OK;
}

bool mdns_hostname_exists(const char * hostname)
Expand Down Expand Up @@ -4894,7 +4894,7 @@ esp_err_t mdns_instance_name_set(const char * instance)
free(action);
return ESP_ERR_NO_MEM;
}
return ERR_OK;
return ESP_OK;
}

/*
Expand Down

0 comments on commit 8a12082

Please sign in to comment.