aboutsummaryrefslogtreecommitdiff
path: root/src/core/test_core_api_preferences.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/test_core_api_preferences.c')
-rw-r--r--src/core/test_core_api_preferences.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/core/test_core_api_preferences.c b/src/core/test_core_api_preferences.c
index 19d51ef60..6d7f52953 100644
--- a/src/core/test_core_api_preferences.c
+++ b/src/core/test_core_api_preferences.c
@@ -154,8 +154,8 @@ transmit_ready (void *cls, size_t size, void *buf)
154 154
155static void 155static void
156preference_cb (void *cls, const struct GNUNET_PeerIdentity *peer, 156preference_cb (void *cls, const struct GNUNET_PeerIdentity *peer,
157 struct GNUNET_BANDWIDTH_Value32NBO bandwidth_out, int32_t amount, 157 int32_t amount,
158 struct GNUNET_TIME_Relative res_delay, uint64_t preference); 158 struct GNUNET_TIME_Relative res_delay);
159 159
160static void 160static void
161do_reserve (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) 161do_reserve (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
@@ -173,16 +173,14 @@ do_reserve (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
173 "Requesting reservatin of 32k from core in 1s!\n"); 173 "Requesting reservatin of 32k from core in 1s!\n");
174 irc = 174 irc =
175 GNUNET_CORE_peer_change_preference (p1.ch, &p2.id, 175 GNUNET_CORE_peer_change_preference (p1.ch, &p2.id,
176 GNUNET_TIME_UNIT_SECONDS,
177 GNUNET_BANDWIDTH_VALUE_MAX,
178 1000000 /* bandwidth for 1s */ , 176 1000000 /* bandwidth for 1s */ ,
179 0, &preference_cb, pc); 177 0, &preference_cb, pc);
180} 178}
181 179
182static void 180static void
183preference_cb (void *cls, const struct GNUNET_PeerIdentity *peer, 181preference_cb (void *cls, const struct GNUNET_PeerIdentity *peer,
184 struct GNUNET_BANDWIDTH_Value32NBO bandwidth_out, int32_t amount, 182 int32_t amount,
185 struct GNUNET_TIME_Relative res_delay, uint64_t preference) 183 struct GNUNET_TIME_Relative res_delay)
186{ 184{
187 struct PeerContext *pc = cls; 185 struct PeerContext *pc = cls;
188 186