diff options
Diffstat (limited to 'src/ats/test_ats_api_delayed_service_performance_monitor.c')
-rw-r--r-- | src/ats/test_ats_api_delayed_service_performance_monitor.c | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/src/ats/test_ats_api_delayed_service_performance_monitor.c b/src/ats/test_ats_api_delayed_service_performance_monitor.c index f09f7d58d..e19d1673f 100644 --- a/src/ats/test_ats_api_delayed_service_performance_monitor.c +++ b/src/ats/test_ats_api_delayed_service_performance_monitor.c | |||
@@ -37,12 +37,12 @@ static struct GNUNET_SCHEDULER_Task * die_task; | |||
37 | /** | 37 | /** |
38 | * Statistics handle | 38 | * Statistics handle |
39 | */ | 39 | */ |
40 | struct GNUNET_STATISTICS_Handle *stats; | 40 | static struct GNUNET_STATISTICS_Handle *stats; |
41 | 41 | ||
42 | /** | 42 | /** |
43 | * Configuration handle | 43 | * Configuration handle |
44 | */ | 44 | */ |
45 | struct GNUNET_CONFIGURATION_Handle *cfg; | 45 | static struct GNUNET_CONFIGURATION_Handle *cfg; |
46 | 46 | ||
47 | /** | 47 | /** |
48 | * ATS scheduling handle | 48 | * ATS scheduling handle |
@@ -54,7 +54,6 @@ static struct GNUNET_ATS_SchedulingHandle *sched_ats; | |||
54 | */ | 54 | */ |
55 | static struct GNUNET_ATS_PerformanceHandle *perf_ats; | 55 | static struct GNUNET_ATS_PerformanceHandle *perf_ats; |
56 | 56 | ||
57 | struct GNUNET_ATS_AddressListHandle* phal; | ||
58 | 57 | ||
59 | static int ret; | 58 | static int ret; |
60 | 59 | ||
@@ -84,9 +83,9 @@ static struct PeerContext p[2]; | |||
84 | static struct Address p0_addresses[2]; | 83 | static struct Address p0_addresses[2]; |
85 | static struct Address p1_addresses[2]; | 84 | static struct Address p1_addresses[2]; |
86 | 85 | ||
87 | struct GNUNET_HELLO_Address p0_ha[2]; | 86 | static struct GNUNET_HELLO_Address p0_ha[2]; |
88 | struct GNUNET_HELLO_Address p1_ha[2]; | 87 | static struct GNUNET_HELLO_Address p1_ha[2]; |
89 | struct GNUNET_HELLO_Address *s_ha[2]; | 88 | |
90 | 89 | ||
91 | static void | 90 | static void |
92 | end (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc); | 91 | end (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc); |
@@ -148,20 +147,18 @@ stat_cb(void *cls, const char *subsystem, | |||
148 | 147 | ||
149 | } | 148 | } |
150 | 149 | ||
150 | |||
151 | static void | 151 | static void |
152 | address_suggest_cb (void *cls, | 152 | address_suggest_cb (void *cls, |
153 | const struct GNUNET_PeerIdentity *peer, | 153 | const struct GNUNET_PeerIdentity *peer, |
154 | const struct GNUNET_HELLO_Address *address, | 154 | const struct GNUNET_HELLO_Address *address, |
155 | struct Session *session, | 155 | struct Session *session, |
156 | struct GNUNET_BANDWIDTH_Value32NBO bandwidth_out, | 156 | struct GNUNET_BANDWIDTH_Value32NBO bandwidth_out, |
157 | struct GNUNET_BANDWIDTH_Value32NBO bandwidth_in, | 157 | struct GNUNET_BANDWIDTH_Value32NBO bandwidth_in) |
158 | const struct GNUNET_ATS_Information *atsi, | ||
159 | uint32_t ats_count) | ||
160 | 158 | ||
161 | { | 159 | { |
162 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Did not expect suggestion callback!\n"); | 160 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Did not expect suggestion callback!\n"); |
163 | GNUNET_SCHEDULER_add_now (&end_badly, NULL); | 161 | GNUNET_SCHEDULER_add_now (&end_badly, NULL); |
164 | return; | ||
165 | } | 162 | } |
166 | 163 | ||
167 | 164 | ||