aboutsummaryrefslogtreecommitdiff
path: root/src/hostlist/gnunet-daemon-hostlist.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2013-03-21 14:49:23 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2013-03-21 14:49:23 +0000
commit9f36a60e41f9a5e7b3f2b2e71245955e390d125d (patch)
tree208e32d241b4b4df57b7f93563fbe792bb66d8f8 /src/hostlist/gnunet-daemon-hostlist.c
parent4616bf9d016bcfb319954e52b5d24fc93c3cf1b2 (diff)
downloadgnunet-9f36a60e41f9a5e7b3f2b2e71245955e390d125d.tar.gz
gnunet-9f36a60e41f9a5e7b3f2b2e71245955e390d125d.zip
fix core api changes
Diffstat (limited to 'src/hostlist/gnunet-daemon-hostlist.c')
-rw-r--r--src/hostlist/gnunet-daemon-hostlist.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/src/hostlist/gnunet-daemon-hostlist.c b/src/hostlist/gnunet-daemon-hostlist.c
index 255f0d544..8d5252534 100644
--- a/src/hostlist/gnunet-daemon-hostlist.c
+++ b/src/hostlist/gnunet-daemon-hostlist.c
@@ -148,12 +148,10 @@ core_init (void *cls, struct GNUNET_CORE_Handle *server,
148 */ 148 */
149static int 149static int
150advertisement_handler (void *cls, const struct GNUNET_PeerIdentity *peer, 150advertisement_handler (void *cls, const struct GNUNET_PeerIdentity *peer,
151 const struct GNUNET_MessageHeader *message, 151 const struct GNUNET_MessageHeader *message)
152 const struct GNUNET_ATS_Information *atsi,
153 unsigned int atsi_count)
154{ 152{
155 GNUNET_assert (NULL != client_adv_handler); 153 GNUNET_assert (NULL != client_adv_handler);
156 return (*client_adv_handler) (cls, peer, message, atsi, atsi_count); 154 return (*client_adv_handler) (cls, peer, message);
157} 155}
158 156
159 157
@@ -166,19 +164,19 @@ advertisement_handler (void *cls, const struct GNUNET_PeerIdentity *peer,
166 * @param atsi_count number of records in 'atsi' 164 * @param atsi_count number of records in 'atsi'
167 */ 165 */
168static void 166static void
169connect_handler (void *cls, const struct GNUNET_PeerIdentity *peer, 167connect_handler (void *cls, const struct GNUNET_PeerIdentity *peer)
170 const struct GNUNET_ATS_Information *atsi,
171 unsigned int atsi_count)
172{ 168{
173 if (0 == memcmp (&me, peer, sizeof (struct GNUNET_PeerIdentity))) 169 if (0 == memcmp (&me, peer, sizeof (struct GNUNET_PeerIdentity)))
174 return; 170 return;
175 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 171 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
176 "A new peer connected, notifying client and server\n"); 172 "A new peer connected, notifying client and server\n");
177 if (NULL != client_ch) 173 if (NULL != client_ch)
178 (*client_ch) (cls, peer, atsi, atsi_count); 174 {
175 (*client_ch) (cls, peer);
176 }
179#if HAVE_MHD 177#if HAVE_MHD
180 if (NULL != server_ch) 178 if (NULL != server_ch)
181 (*server_ch) (cls, peer, atsi, atsi_count); 179 (*server_ch) (cls, peer);
182#endif 180#endif
183} 181}
184 182