diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2011-01-03 14:21:25 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2011-01-03 14:21:25 +0000 |
commit | 748e690fe49e2639076cb76e6a4a4c5eb04e130e (patch) | |
tree | f76bcad30b4efc1f8daaf309ba38c3496603ce82 /src/peerinfo-tool | |
parent | cb3c882dbb05a797728dfd8b5983ade5a8999eac (diff) | |
download | gnunet-748e690fe49e2639076cb76e6a4a4c5eb04e130e.tar.gz gnunet-748e690fe49e2639076cb76e6a4a4c5eb04e130e.zip |
Changed peerinfo api to distinguish between last element and timeout
Diffstat (limited to 'src/peerinfo-tool')
-rw-r--r-- | src/peerinfo-tool/gnunet-peerinfo.c | 5 |
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, | |||
157 | static void | 157 | static void |
158 | print_peer_info (void *cls, | 158 | print_peer_info (void *cls, |
159 | const struct GNUNET_PeerIdentity *peer, | 159 | const struct GNUNET_PeerIdentity *peer, |
160 | const struct GNUNET_HELLO_Message *hello) | 160 | const struct GNUNET_HELLO_Message *hello, |
161 | const char * err_msg) | ||
161 | { | 162 | { |
162 | struct GNUNET_CRYPTO_HashAsciiEncoded enc; | 163 | struct GNUNET_CRYPTO_HashAsciiEncoded enc; |
163 | struct PrintContext *pc; | 164 | struct PrintContext *pc; |
164 | 165 | ||
165 | if (peer == NULL) | 166 | if (peer == NULL) |
166 | { | 167 | { |
167 | fprintf (stderr,_("Error in communication with PEERINFO service\n")); | 168 | if (err_msg != NULL) fprintf (stderr,_("Error in communication with PEERINFO service\n")); |
168 | GNUNET_PEERINFO_disconnect (peerinfo); | 169 | GNUNET_PEERINFO_disconnect (peerinfo); |
169 | return; | 170 | return; |
170 | } | 171 | } |