gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r33329 - gnunet/src/peerinfo-tool


From: gnunet
Subject: [GNUnet-SVN] r33329 - gnunet/src/peerinfo-tool
Date: Mon, 19 May 2014 16:17:08 +0200

Author: wachs
Date: 2014-05-19 16:17:08 +0200 (Mon, 19 May 2014)
New Revision: 33329

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


Modified: gnunet/src/peerinfo-tool/gnunet-peerinfo.c
===================================================================
--- gnunet/src/peerinfo-tool/gnunet-peerinfo.c  2014-05-19 14:14:10 UTC (rev 
33328)
+++ gnunet/src/peerinfo-tool/gnunet-peerinfo.c  2014-05-19 14:17:08 UTC (rev 
33329)
@@ -262,7 +262,7 @@
  * @param address NULL on error, otherwise 0-terminated printable UTF-8 string
  */
 static void
-process_resolved_address (void *cls, const char *address)
+process_resolved_address (void *cls, const char *address, int res)
 {
   struct AddressRecord * ar = cls;
   struct PrintContext *pc = ar->pc;
@@ -273,6 +273,13 @@
       ar->result = GNUNET_strdup (address);
     return;
   }
+
+  if (GNUNET_SYSERR == res)
+  {
+    FPRINTF (stderr,
+             _("Failure: Cannot convert address to string for peer `%s'\n"),
+             GNUNET_i2s (&ar->pc->peer));
+  }
   ar->atsc = NULL;
   pc->num_addresses++;
   if (pc->num_addresses == pc->address_list_size)




reply via email to

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