aboutsummaryrefslogtreecommitdiff
path: root/src/peerinfo/gnunet-peerinfo-gtk.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/peerinfo/gnunet-peerinfo-gtk.c')
-rw-r--r--src/peerinfo/gnunet-peerinfo-gtk.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/peerinfo/gnunet-peerinfo-gtk.c b/src/peerinfo/gnunet-peerinfo-gtk.c
index 1c3a709e..31f21e73 100644
--- a/src/peerinfo/gnunet-peerinfo-gtk.c
+++ b/src/peerinfo/gnunet-peerinfo-gtk.c
@@ -538,10 +538,13 @@ get_iter_from_rr (GtkTreeRowReference *rr,
538 * 538 *
539 * @param cts the `struct PeerAddress` for the address 539 * @param cts the `struct PeerAddress` for the address
540 * @param address address as a string, NULL on error 540 * @param address address as a string, NULL on error
541 * @param res result of the address to string conversion: GNUNET_OK or GNUNET_SYSERR
542 * if GNUNET_OK: address contains address as string
543 * if GNUNET_SYSERR: address is invalid
541 */ 544 */
542static void 545static void
543peer_address_string_cb (void *cts, 546peer_address_string_cb (void *cts,
544 const char *address) 547 const char *address, int res)
545{ 548{
546 struct PeerAddress *pa = cts; 549 struct PeerAddress *pa = cts;
547 GtkTreeIter iter; 550 GtkTreeIter iter;
@@ -554,6 +557,15 @@ peer_address_string_cb (void *cts,
554 pa->tos = NULL; 557 pa->tos = NULL;
555 return; 558 return;
556 } 559 }
560
561 if (GNUNET_SYSERR == res)
562 {
563 fprintf (stderr, "Failed to convert address for peer `%s' plugin `%s' length %lu to string \n",
564 GNUNET_i2s (&pa->pi->pid),
565 pa->plugin,
566 pa->addr_len);
567 }
568
557 get_iter_from_rr (pa->rr, &iter); 569 get_iter_from_rr (pa->rr, &iter);
558 country = NULL; 570 country = NULL;
559 colon = strstr (address, ":"); 571 colon = strstr (address, ":");