From: Christian Grothoff Date: Thu, 21 Jan 2010 14:51:17 +0000 (+0000) Subject: fix X-Git-Tag: initial-import-from-subversion-38251~22893 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ee31486a405f33d1a4ec77bacb7cd1a9b876734e;p=oweals%2Fgnunet.git fix --- diff --git a/src/hostlist/gnunet-daemon-hostlist.c b/src/hostlist/gnunet-daemon-hostlist.c index b8cf93d5a..f5db86c91 100644 --- a/src/hostlist/gnunet-daemon-hostlist.c +++ b/src/hostlist/gnunet-daemon-hostlist.c @@ -158,8 +158,8 @@ run (void *cls, const char *cfgfile, const struct GNUNET_CONFIGURATION_Handle * cfg) { - GNUNET_CORE_ClientEventHandler ch = NULL; - GNUNET_CORE_ClientEventHandler dh = NULL; + GNUNET_CORE_ConnectEventHandler ch = NULL; + GNUNET_CORE_DisconnectEventHandler dh = NULL; struct GNUNET_CORE_MessageHandler handlers[] = { { NULL, 0, 0 } diff --git a/src/hostlist/hostlist-client.c b/src/hostlist/hostlist-client.c index 6c0629eb3..e816b46c4 100644 --- a/src/hostlist/hostlist-client.c +++ b/src/hostlist/hostlist-client.c @@ -638,11 +638,15 @@ schedule_hostlist_task () * * @param cls closure * @param peer peer identity this notification is about + * @param latency reported latency of the connection with 'other' + * @param distance reported distance (DV) to 'other' */ static void connect_handler (void *cls, const struct - GNUNET_PeerIdentity * peer) + GNUNET_PeerIdentity * peer, + struct GNUNET_TIME_Relative latency, + uint32_t distance) { connection_count++; } @@ -706,8 +710,8 @@ int GNUNET_HOSTLIST_client_start (const struct GNUNET_CONFIGURATION_Handle *c, struct GNUNET_SCHEDULER_Handle *s, struct GNUNET_STATISTICS_Handle *st, - GNUNET_CORE_ClientEventHandler *ch, - GNUNET_CORE_ClientEventHandler *dh) + GNUNET_CORE_ConnectEventHandler *ch, + GNUNET_CORE_DisconnectEventHandler *dh) { if (0 != curl_global_init (CURL_GLOBAL_WIN32)) { diff --git a/src/hostlist/hostlist-client.h b/src/hostlist/hostlist-client.h index 26c013505..888d2099a 100644 --- a/src/hostlist/hostlist-client.h +++ b/src/hostlist/hostlist-client.h @@ -46,8 +46,8 @@ int GNUNET_HOSTLIST_client_start (const struct GNUNET_CONFIGURATION_Handle *c, struct GNUNET_SCHEDULER_Handle *s, struct GNUNET_STATISTICS_Handle *st, - GNUNET_CORE_ClientEventHandler *ch, - GNUNET_CORE_ClientEventHandler *dh); + GNUNET_CORE_ConnectEventHandler *ch, + GNUNET_CORE_DisconnectEventHandler *dh); /**