-indentation
[oweals/gnunet.git] / src / transport / plugin_transport_http_common.c
index 131624f16e9336162f7b794ccdf81d3b933c06da..763c252ea9efab4d0e5f9b758cdbad6418a6a00d 100644 (file)
@@ -207,21 +207,24 @@ http_common_plugin_address_pretty_printer (void *cls,
                                            void *asc_cls)
 {
   const struct HttpAddress *address = addr;
-
-  if (NULL ==
-      http_common_plugin_address_to_string (NULL, type,
-                                            address, addrlen))
-  {
-    asc (asc_cls, NULL);
-    return;
-  }
-  asc (asc_cls, http_common_plugin_address_to_string (NULL,
-                                                      type,
-                                                      address, addrlen));
-  asc (asc_cls, NULL);
+  const char *ret;
+
+  ret = http_common_plugin_address_to_string (NULL,
+                                              type,
+                                              address,
+                                              addrlen);
+  asc (asc_cls,
+       ret,
+       (NULL == ret) ? GNUNET_SYSERR : GNUNET_OK);
+  asc (asc_cls,
+       NULL,
+       GNUNET_OK);
 }
 
 
+/**
+ * FIXME.
+ */
 const char *
 http_common_plugin_address_to_url (void *cls,
                                    const void *addr,