aboutsummaryrefslogtreecommitdiff
path: root/src/hostlist
diff options
context:
space:
mode:
Diffstat (limited to 'src/hostlist')
-rw-r--r--src/hostlist/gnunet-daemon-hostlist.c4
-rw-r--r--src/hostlist/hostlist-client.c10
-rw-r--r--src/hostlist/hostlist-client.h4
3 files changed, 11 insertions, 7 deletions
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,
158 const char *cfgfile, 158 const char *cfgfile,
159 const struct GNUNET_CONFIGURATION_Handle * cfg) 159 const struct GNUNET_CONFIGURATION_Handle * cfg)
160{ 160{
161 GNUNET_CORE_ClientEventHandler ch = NULL; 161 GNUNET_CORE_ConnectEventHandler ch = NULL;
162 GNUNET_CORE_ClientEventHandler dh = NULL; 162 GNUNET_CORE_DisconnectEventHandler dh = NULL;
163 struct GNUNET_CORE_MessageHandler handlers[] = 163 struct GNUNET_CORE_MessageHandler handlers[] =
164 { 164 {
165 { NULL, 0, 0 } 165 { 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 ()
638 * 638 *
639 * @param cls closure 639 * @param cls closure
640 * @param peer peer identity this notification is about 640 * @param peer peer identity this notification is about
641 * @param latency reported latency of the connection with 'other'
642 * @param distance reported distance (DV) to 'other'
641 */ 643 */
642static void 644static void
643connect_handler (void *cls, 645connect_handler (void *cls,
644 const struct 646 const struct
645 GNUNET_PeerIdentity * peer) 647 GNUNET_PeerIdentity * peer,
648 struct GNUNET_TIME_Relative latency,
649 uint32_t distance)
646{ 650{
647 connection_count++; 651 connection_count++;
648} 652}
@@ -706,8 +710,8 @@ int
706GNUNET_HOSTLIST_client_start (const struct GNUNET_CONFIGURATION_Handle *c, 710GNUNET_HOSTLIST_client_start (const struct GNUNET_CONFIGURATION_Handle *c,
707 struct GNUNET_SCHEDULER_Handle *s, 711 struct GNUNET_SCHEDULER_Handle *s,
708 struct GNUNET_STATISTICS_Handle *st, 712 struct GNUNET_STATISTICS_Handle *st,
709 GNUNET_CORE_ClientEventHandler *ch, 713 GNUNET_CORE_ConnectEventHandler *ch,
710 GNUNET_CORE_ClientEventHandler *dh) 714 GNUNET_CORE_DisconnectEventHandler *dh)
711{ 715{
712 if (0 != curl_global_init (CURL_GLOBAL_WIN32)) 716 if (0 != curl_global_init (CURL_GLOBAL_WIN32))
713 { 717 {
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
46GNUNET_HOSTLIST_client_start (const struct GNUNET_CONFIGURATION_Handle *c, 46GNUNET_HOSTLIST_client_start (const struct GNUNET_CONFIGURATION_Handle *c,
47 struct GNUNET_SCHEDULER_Handle *s, 47 struct GNUNET_SCHEDULER_Handle *s,
48 struct GNUNET_STATISTICS_Handle *st, 48 struct GNUNET_STATISTICS_Handle *st,
49 GNUNET_CORE_ClientEventHandler *ch, 49 GNUNET_CORE_ConnectEventHandler *ch,
50 GNUNET_CORE_ClientEventHandler *dh); 50 GNUNET_CORE_DisconnectEventHandler *dh);
51 51
52 52
53/** 53/**