diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2014-05-19 14:17:08 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2014-05-19 14:17:08 +0000 |
commit | 9004102ff6e0b77e94141c34f97226378824e950 (patch) | |
tree | 226c58473c7b91481442489d8c8fed2f0edd9c8a /src/peerinfo-tool/gnunet-peerinfo.c | |
parent | f8ea0bded0aa012dbf7ef8e9119544e85247f3c0 (diff) | |
download | gnunet-9004102ff6e0b77e94141c34f97226378824e950.tar.gz gnunet-9004102ff6e0b77e94141c34f97226378824e950.zip |
new api
Diffstat (limited to 'src/peerinfo-tool/gnunet-peerinfo.c')
-rw-r--r-- | src/peerinfo-tool/gnunet-peerinfo.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/peerinfo-tool/gnunet-peerinfo.c b/src/peerinfo-tool/gnunet-peerinfo.c index ba2480c20..7157264e8 100644 --- a/src/peerinfo-tool/gnunet-peerinfo.c +++ b/src/peerinfo-tool/gnunet-peerinfo.c | |||
@@ -262,7 +262,7 @@ dump_pc (struct PrintContext *pc) | |||
262 | * @param address NULL on error, otherwise 0-terminated printable UTF-8 string | 262 | * @param address NULL on error, otherwise 0-terminated printable UTF-8 string |
263 | */ | 263 | */ |
264 | static void | 264 | static void |
265 | process_resolved_address (void *cls, const char *address) | 265 | process_resolved_address (void *cls, const char *address, int res) |
266 | { | 266 | { |
267 | struct AddressRecord * ar = cls; | 267 | struct AddressRecord * ar = cls; |
268 | struct PrintContext *pc = ar->pc; | 268 | struct PrintContext *pc = ar->pc; |
@@ -273,6 +273,13 @@ process_resolved_address (void *cls, const char *address) | |||
273 | ar->result = GNUNET_strdup (address); | 273 | ar->result = GNUNET_strdup (address); |
274 | return; | 274 | return; |
275 | } | 275 | } |
276 | |||
277 | if (GNUNET_SYSERR == res) | ||
278 | { | ||
279 | FPRINTF (stderr, | ||
280 | _("Failure: Cannot convert address to string for peer `%s'\n"), | ||
281 | GNUNET_i2s (&ar->pc->peer)); | ||
282 | } | ||
276 | ar->atsc = NULL; | 283 | ar->atsc = NULL; |
277 | pc->num_addresses++; | 284 | pc->num_addresses++; |
278 | if (pc->num_addresses == pc->address_list_size) | 285 | if (pc->num_addresses == pc->address_list_size) |