From 54e228cbec988f1dfc3c785b0d69c0eb8c55de0c Mon Sep 17 00:00:00 2001 From: Mike Brady <4265913+mikebrady@users.noreply.github.com> Date: Mon, 8 Aug 2022 12:18:36 +0100 Subject: [PATCH] Accommodate but do not use extra texts and name for a secondary boujour message. --- mdns_dns_sd.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mdns_dns_sd.c b/mdns_dns_sd.c index 4952a9f0..01be15a1 100644 --- a/mdns_dns_sd.c +++ b/mdns_dns_sd.c @@ -33,8 +33,9 @@ static DNSServiceRef service; -static int mdns_dns_sd_register(char *apname, int port, - __attribute__((unused)) char **txt_records) { +static int mdns_dns_sd_register(char *ap1name, __attribute__((unused)) char *ap2name, int port, + __attribute__((unused)) char **txt_records, + __attribute__((unused)) char **secondary_txt_records) { char *recordwithoutmetadata[] = {MDNS_RECORD_WITHOUT_METADATA, NULL}; #ifdef CONFIG_METADATA char *recordwithmetadata[] = {MDNS_RECORD_WITH_METADATA, NULL}; @@ -71,7 +72,7 @@ static int mdns_dns_sd_register(char *apname, int port, } DNSServiceErrorType error; - error = DNSServiceRegister(&service, 0, kDNSServiceInterfaceIndexAny, apname, config.regtype, "", + error = DNSServiceRegister(&service, 0, kDNSServiceInterfaceIndexAny, ap1name, config.regtype, "", NULL, htons((uint16_t)port), length, buf, NULL, NULL); free(buf);