diff options
author | Christian Grothoff <christian@grothoff.org> | 2014-06-11 09:16:42 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2014-06-11 09:16:42 +0000 |
commit | 30b7ff09b7fe180ec262afe7370d0442340182f3 (patch) | |
tree | bd06a7ed7e24ec11607c3d18d55e27d618f128fd /src/peerinfo-tool/gnunet-peerinfo.c | |
parent | 82192cd2ab03977cf175507372e0f8cd12d1db7d (diff) | |
download | gnunet-30b7ff09b7fe180ec262afe7370d0442340182f3.tar.gz gnunet-30b7ff09b7fe180ec262afe7370d0442340182f3.zip |
-fix counting
Diffstat (limited to 'src/peerinfo-tool/gnunet-peerinfo.c')
-rw-r--r-- | src/peerinfo-tool/gnunet-peerinfo.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/peerinfo-tool/gnunet-peerinfo.c b/src/peerinfo-tool/gnunet-peerinfo.c index b16ad9cbf..c70724158 100644 --- a/src/peerinfo-tool/gnunet-peerinfo.c +++ b/src/peerinfo-tool/gnunet-peerinfo.c | |||
@@ -282,15 +282,10 @@ process_resolved_address (void *cls, | |||
282 | } | 282 | } |
283 | ar->atsc = NULL; | 283 | ar->atsc = NULL; |
284 | if (GNUNET_SYSERR == res) | 284 | if (GNUNET_SYSERR == res) |
285 | { | 285 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, |
286 | FPRINTF (stderr, | ||
287 | _("Failure: Cannot convert address to string for peer `%s'\n"), | 286 | _("Failure: Cannot convert address to string for peer `%s'\n"), |
288 | GNUNET_i2s (&ar->pc->peer)); | 287 | GNUNET_i2s (&ar->pc->peer)); |
289 | } | 288 | pc->num_addresses++; |
290 | else | ||
291 | { | ||
292 | pc->num_addresses++; | ||
293 | } | ||
294 | if (pc->num_addresses == pc->address_list_size) | 289 | if (pc->num_addresses == pc->address_list_size) |
295 | dump_pc (pc); | 290 | dump_pc (pc); |
296 | } | 291 | } |