From 800c3b54ba9a67ad995d6b5c1ecbffe224f4676d Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Mon, 2 Jun 2014 09:40:12 +0000 Subject: fix semantic for address_to_string --- src/transport/plugin_transport_unix.c | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'src/transport/plugin_transport_unix.c') diff --git a/src/transport/plugin_transport_unix.c b/src/transport/plugin_transport_unix.c index 94c160144..792d7718e 100644 --- a/src/transport/plugin_transport_unix.c +++ b/src/transport/plugin_transport_unix.c @@ -1421,18 +1421,11 @@ unix_plugin_address_pretty_printer (void *cls, const char *type, { if ((NULL != addr) && (addrlen > 0)) { - asc (asc_cls, unix_address_to_string (NULL, addr, addrlen)); - } - else if (0 == addrlen) - { - asc (asc_cls, TRANSPORT_SESSION_INBOUND_STRING); + asc (asc_cls, unix_address_to_string (NULL, addr, addrlen), GNUNET_OK); } else - { - GNUNET_break (0); - asc (asc_cls, ""); - } - asc (asc_cls, NULL); + asc (asc_cls, NULL, GNUNET_SYSERR); + asc (asc_cls, NULL, GNUNET_OK); } -- cgit v1.2.3