aboutsummaryrefslogtreecommitdiff
path: root/src/peerinfo/test_peerinfo_api.c
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/test_peerinfo_api.c
parentcb3c882dbb05a797728dfd8b5983ade5a8999eac (diff)
downloadgnunet-748e690fe49e2639076cb76e6a4a4c5eb04e130e.tar.gz
gnunet-748e690fe49e2639076cb76e6a4a4c5eb04e130e.zip
Changed peerinfo api to distinguish between last element and timeout
Diffstat (limited to 'src/peerinfo/test_peerinfo_api.c')
-rw-r--r--src/peerinfo/test_peerinfo_api.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/peerinfo/test_peerinfo_api.c b/src/peerinfo/test_peerinfo_api.c
index 4030820d7..460a3764d 100644
--- a/src/peerinfo/test_peerinfo_api.c
+++ b/src/peerinfo/test_peerinfo_api.c
@@ -100,11 +100,18 @@ add_peer ()
100static void 100static void
101process (void *cls, 101process (void *cls,
102 const struct GNUNET_PeerIdentity *peer, 102 const struct GNUNET_PeerIdentity *peer,
103 const struct GNUNET_HELLO_Message *hello) 103 const struct GNUNET_HELLO_Message *hello,
104 const char * err_msg)
104{ 105{
105 int *ok = cls; 106 int *ok = cls;
106 unsigned int agc; 107 unsigned int agc;
107 108
109 if (err_msg != NULL)
110 {
111 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
112 _("Error in communication with PEERINFO service\n"));
113 }
114
108 if (peer == NULL) 115 if (peer == NULL)
109 { 116 {
110 ic = NULL; 117 ic = NULL;