fixing compile error
authorMatthias Wachs <wachs@net.in.tum.de>
Tue, 10 Jun 2014 09:44:07 +0000 (09:44 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Tue, 10 Jun 2014 09:44:07 +0000 (09:44 +0000)
src/transport/test_plugin_transport.c

index e41a2d0e41635ba22ccbec35582bf850c3864f48..83ff7f1c4fdc4fa5cd2bdc93b464687a2056b147 100644 (file)
@@ -291,31 +291,25 @@ static int got_reply;
  * Take the given address and append it to the set of results sent back to
  * the client.
  *
- * @param cls the transmission context used ('struct GNUNET_SERVER_TransmitContext*')
- * @param buf one of the names for the host, NULL on last callback
- * @param res #GNUNET_OK if conversion was successful, #GNUNET_SYSERR on failure,
- *      #GNUNET_OK on last callback
+ * @param cls closure
+ * @param address the address to print
+ * @param res result code
  */
 static void
-address_pretty_printer_cb (void *cls,
-                           const char *buf,
-                           int res)
+address_pretty_printer_cb (void *cls, const char *address, int res)
 {
-  if (NULL != buf)
+  if (NULL != address)
   {
     got_reply = GNUNET_YES;
-    GNUNET_log (GNUNET_ERROR_TYPE_INFO,
-                "Pretty address : `%s'\n",
-                buf);
+    GNUNET_log(GNUNET_ERROR_TYPE_INFO, "Pretty address : `%s'\n", address);
     pretty_printers_running--;
   }
   else
   {
-    if ( (GNUNET_OK == res) &&
-         (GNUNET_NO == got_reply) )
+    if (GNUNET_NO == got_reply)
     {
       pretty_printers_running--;
-      GNUNET_break (0);
+      GNUNET_break(0);
       end_badly_now ();
     }
   }