X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=avahi-core%2Fserver.c;h=4d5a4ecc798b6ba913fae6a49b6e11329a624c32;hb=9a5c4c803767ad7eaf77bac16a3c02bd14a4ce43;hp=541c7b729b298441bd037b3545d076d75f135735;hpb=bf0db10cd964b708a77d2e1768500f57a1392023;p=catta diff --git a/avahi-core/server.c b/avahi-core/server.c index 541c7b7..4d5a4ec 100644 --- a/avahi-core/server.c +++ b/avahi-core/server.c @@ -2294,37 +2294,6 @@ AvahiServerConfig* avahi_server_config_copy(AvahiServerConfig *ret, const AvahiS return ret; } -const gchar *avahi_strerror(gint error) { - g_assert(-error >= 0 && -error < -AVAHI_ERR_MAX); - - const gchar * const msg[- AVAHI_ERR_MAX] = { - "OK", - "Operation failed", - "Bad state", - "Invalid host name", - "Invalid domain name", - "No suitable network protocol available", - "Invalid DNS TTL", - "Resource record key is pattern", - "Local name collision", - "Invalid record", - "Invalid service name", - "Invalid service type", - "Invalid port number", - "Invalid record key", - "Invalid address", - "Timeout reached", - "Too many clients", - "Too many objects", - "Too many entries", - "OS Error", - "Access denied", - "Invalid operation" - }; - - return msg[-error]; -} - gint avahi_server_errno(AvahiServer *s) { g_assert(s);