gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r33623 - gnunet/src/transport


From: gnunet
Subject: [GNUnet-SVN] r33623 - gnunet/src/transport
Date: Tue, 10 Jun 2014 11:44:07 +0200

Author: wachs
Date: 2014-06-10 11:44:07 +0200 (Tue, 10 Jun 2014)
New Revision: 33623

Modified:
   gnunet/src/transport/test_plugin_transport.c
Log:
fixing compile error


Modified: gnunet/src/transport/test_plugin_transport.c
===================================================================
--- gnunet/src/transport/test_plugin_transport.c        2014-06-10 09:42:00 UTC 
(rev 33622)
+++ gnunet/src/transport/test_plugin_transport.c        2014-06-10 09:44:07 UTC 
(rev 33623)
@@ -291,31 +291,25 @@
  * 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 ();
     }
   }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]