]> git.meshlink.io Git - catta/blobdiff - avahi-daemon/static-services.c
* swap order of "type" and "name" arguments of avahi_server_add_service() and friends
[catta] / avahi-daemon / static-services.c
index 4e97299d99329ad853d8b68723bb1d5d38692fa7..59ef7aa9826275a1d7401b5a15dbcdf52a1af44c 100644 (file)
@@ -210,7 +210,7 @@ static void add_static_service_group_to_server(StaticServiceGroup *g) {
                 avahi_server,
                 g->entry_group,
                 -1, AF_UNSPEC,
-                s->type, g->chosen_name,
+                g->chosen_name, s->type, 
                 s->domain_name, s->host_name, s->port,
                 avahi_string_list_copy(s->txt_records)) < 0) {
             avahi_log_error("Failed to add service '%s' of type '%s', ignoring service group (%s)", g->chosen_name, s->type, g->filename);