mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-08 14:46:35 +02:00
fixed typo
This commit is contained in:
parent
e91eb74f3e
commit
ad5af4bd8a
1 changed files with 4 additions and 4 deletions
|
@ -128,9 +128,8 @@ void PublishAvahi::entry_group_callback(AvahiEntryGroup *g, AvahiEntryGroupState
|
||||||
|
|
||||||
void PublishAvahi::create_services(AvahiClient *c)
|
void PublishAvahi::create_services(AvahiClient *c)
|
||||||
{
|
{
|
||||||
char *n, r[128];
|
|
||||||
int ret;
|
|
||||||
assert(c);
|
assert(c);
|
||||||
|
char *n;
|
||||||
|
|
||||||
/// If this is the first time we're called, let's create a new entry group if necessary
|
/// If this is the first time we're called, let's create a new entry group if necessary
|
||||||
if (!group)
|
if (!group)
|
||||||
|
@ -143,12 +142,13 @@ void PublishAvahi::create_services(AvahiClient *c)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// If the group is empty (either because it was just created, or because it was reset previously, add our entries.
|
/// If the group is empty (either because it was just created, or because it was reset previously, add our entries.
|
||||||
|
int ret;
|
||||||
if (avahi_entry_group_is_empty(group))
|
if (avahi_entry_group_is_empty(group))
|
||||||
{
|
{
|
||||||
logO << "Adding service '" << name << "'\n";
|
logO << "Adding service '" << name << "'\n";
|
||||||
|
|
||||||
/// We will now add two services and one subtype to the entry group
|
/// We will now add two services and one subtype to the entry group
|
||||||
for (const auto& service: services)
|
for (const auto& service: services_)
|
||||||
{
|
{
|
||||||
if ((ret = avahi_entry_group_add_service(group, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, AvahiPublishFlags(0), name, service.name_.c_str(), NULL, NULL, service.port_, NULL)) < 0)
|
if ((ret = avahi_entry_group_add_service(group, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, AvahiPublishFlags(0), name, service.name_.c_str(), NULL, NULL, service.port_, NULL)) < 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue