From 0632e854728e8e64552ae08f90852d4a2658539e Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 5 Aug 2005 18:59:21 +0000 Subject: * add proper error codes and patch everything to make use of it * parameter validity checkin in all user visible functions of libavahi-core * two new python tools/examples avahi-resolve-host-name and avahi-resolve-address git-svn-id: file:///home/lennart/svn/public/avahi/trunk@238 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- avahi-daemon/static-services.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'avahi-daemon/static-services.c') diff --git a/avahi-daemon/static-services.c b/avahi-daemon/static-services.c index 8c54eab..0fdff14 100644 --- a/avahi-daemon/static-services.c +++ b/avahi-daemon/static-services.c @@ -193,9 +193,6 @@ static void add_static_service_group_to_server(StaticServiceGroup *g) { g_assert(g); - if (g->entry_group) - return; - if (g->chosen_name) g_free(g->chosen_name); @@ -218,7 +215,9 @@ static void add_static_service_group_to_server(StaticServiceGroup *g) { g->chosen_name, s->type, s->domain_name, s->host_name, s->port, 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); + avahi_log_error("Failed to add service '%s' of type '%s', ignoring service group (%s): %s", + g->chosen_name, s->type, g->filename, + avahi_strerror(avahi_server_errno(avahi_server))); remove_static_service_group_from_server(g); return; } -- cgit