gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r33326 - gnunet-gtk/src/peerinfo


From: gnunet
Subject: [GNUnet-SVN] r33326 - gnunet-gtk/src/peerinfo
Date: Mon, 19 May 2014 16:11:20 +0200

Author: wachs
Date: 2014-05-19 16:11:19 +0200 (Mon, 19 May 2014)
New Revision: 33326

Modified:
   gnunet-gtk/src/peerinfo/gnunet-peerinfo-gtk.c
Log:
new api


Modified: gnunet-gtk/src/peerinfo/gnunet-peerinfo-gtk.c
===================================================================
--- gnunet-gtk/src/peerinfo/gnunet-peerinfo-gtk.c       2014-05-19 13:55:36 UTC 
(rev 33325)
+++ gnunet-gtk/src/peerinfo/gnunet-peerinfo-gtk.c       2014-05-19 14:11:19 UTC 
(rev 33326)
@@ -538,10 +538,13 @@
  *
  * @param cts the `struct PeerAddress` for the address
  * @param address address as a string, NULL on error
+ * @param res result of the address to string conversion: GNUNET_OK or 
GNUNET_SYSERR
+ *        if GNUNET_OK: address contains address as string
+ *        if GNUNET_SYSERR: address is invalid
  */
 static void
 peer_address_string_cb (void *cts,
-                       const char *address)
+                       const char *address, int res)
 {
   struct PeerAddress *pa = cts;
   GtkTreeIter iter;
@@ -554,6 +557,15 @@
     pa->tos = NULL;
     return;
   }
+
+  if (GNUNET_SYSERR == res)
+  {
+    fprintf (stderr, "Failed to convert address for peer `%s' plugin `%s' 
length %lu to string \n",
+        GNUNET_i2s (&pa->pi->pid),
+        pa->plugin,
+        pa->addr_len);
+  }
+
   get_iter_from_rr (pa->rr, &iter);
   country = NULL;
   colon = strstr (address, ":");




reply via email to

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