From 748e690fe49e2639076cb76e6a4a4c5eb04e130e Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Mon, 3 Jan 2011 14:21:25 +0000 Subject: Changed peerinfo api to distinguish between last element and timeout --- src/peerinfo-tool/gnunet-peerinfo.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/peerinfo-tool') 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; } -- cgit v1.2.3