diff options
Diffstat (limited to 'avahi-client/client.c')
-rw-r--r-- | avahi-client/client.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/avahi-client/client.c b/avahi-client/client.c index 90a816f..1159152 100644 --- a/avahi-client/client.c +++ b/avahi-client/client.c @@ -27,6 +27,7 @@ #include <avahi-common/dbus.h> #include <avahi-common/llist.h> #include <avahi-common/error.h> +#include <avahi-common/dbus.h> #include <avahi-common/malloc.h> #include <avahi-common/dbus-watch-glue.h> #include <stdlib.h> @@ -137,9 +138,7 @@ out: static int translate_dbus_error(const DBusError *error) { assert(error); - /*** FIXME! Some more eloquent error translation should happen here */ - - return AVAHI_ERR_DBUS_ERROR; + return avahi_error_dbus_to_number (error->name); } static int get_server_state(AvahiClient *client, int *ret_error) { |