diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2014-05-19 14:11:19 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2014-05-19 14:11:19 +0000 |
commit | 7566879561f84c2fcd610130f8a4c5389947b29c (patch) | |
tree | ddd8e9ebc0724004d1e7f375df7b7562d5b4c17e | |
parent | 772c6a96abd80adfca501504a12202df18a0b031 (diff) | |
download | gnunet-gtk-7566879561f84c2fcd610130f8a4c5389947b29c.tar.gz gnunet-gtk-7566879561f84c2fcd610130f8a4c5389947b29c.zip |
new api
-rw-r--r-- | src/peerinfo/gnunet-peerinfo-gtk.c | 14 |
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 | */ |
542 | static void | 545 | static void |
543 | peer_address_string_cb (void *cts, | 546 | peer_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, ":"); |