summaryrefslogtreecommitdiff
path: root/src/peerinfo-tool
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2011-01-03 14:21:25 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2011-01-03 14:21:25 +0000
commit748e690fe49e2639076cb76e6a4a4c5eb04e130e (patch)
treef76bcad30b4efc1f8daaf309ba38c3496603ce82 /src/peerinfo-tool
parentcb3c882dbb05a797728dfd8b5983ade5a8999eac (diff)
Changed peerinfo api to distinguish between last element and timeout
Diffstat (limited to 'src/peerinfo-tool')
-rw-r--r--src/peerinfo-tool/gnunet-peerinfo.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/peerinfo-tool/gnunet-peerinfo.c b/src/peerinfo-tool/gnunet-peerinfo.c
index 42adcaad8..48cbb6038 100644
--- a/src/peerinfo-tool/gnunet-peerinfo.c
+++ b/src/peerinfo-tool/gnunet-peerinfo.c
@@ -157,14 +157,15 @@ print_address (void *cls,
static void
print_peer_info (void *cls,
const struct GNUNET_PeerIdentity *peer,
- const struct GNUNET_HELLO_Message *hello)
+ const struct GNUNET_HELLO_Message *hello,
+ const char * err_msg)
{
struct GNUNET_CRYPTO_HashAsciiEncoded enc;
struct PrintContext *pc;
if (peer == NULL)
{
- fprintf (stderr,_("Error in communication with PEERINFO service\n"));
+ if (err_msg != NULL) fprintf (stderr,_("Error in communication with PEERINFO service\n"));
GNUNET_PEERINFO_disconnect (peerinfo);
return;
}