diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-01-21 14:58:56 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-01-21 14:58:56 +0000 |
commit | 725a6d5cdbcc11b21e992edb20344f1695e076cc (patch) | |
tree | 651d495437222962dbd014c775991fd3a30c1d3c /src/topology | |
parent | d973b1bf149653e42441cd94ae177d82a4eb311c (diff) | |
download | gnunet-725a6d5cdbcc11b21e992edb20344f1695e076cc.tar.gz gnunet-725a6d5cdbcc11b21e992edb20344f1695e076cc.zip |
fix compile errors
Diffstat (limited to 'src/topology')
-rw-r--r-- | src/topology/gnunet-daemon-topology.c | 30 |
1 files changed, 13 insertions, 17 deletions
diff --git a/src/topology/gnunet-daemon-topology.c b/src/topology/gnunet-daemon-topology.c index d16869afd..ff93f4145 100644 --- a/src/topology/gnunet-daemon-topology.c +++ b/src/topology/gnunet-daemon-topology.c | |||
@@ -258,23 +258,11 @@ static struct DisconnectList *disconnect_tail; | |||
258 | * has completed. | 258 | * has completed. |
259 | * | 259 | * |
260 | * @param cls our 'struct DisconnectList' | 260 | * @param cls our 'struct DisconnectList' |
261 | * @param peer NULL on error (then what?) | 261 | * @param tc unused |
262 | * @param bpm_in set to the current bandwidth limit (receiving) for this peer | ||
263 | * @param bpm_out set to the current bandwidth limit (sending) for this peer | ||
264 | * @param latency current latency estimate, "FOREVER" if we have been | ||
265 | * disconnected | ||
266 | * @param amount set to the amount that was actually reserved or unreserved | ||
267 | * @param preference current traffic preference for the given peer | ||
268 | */ | 262 | */ |
269 | static void | 263 | static void |
270 | disconnect_done (void *cls, | 264 | disconnect_done (void *cls, |
271 | const struct | 265 | const struct GNUNET_SCHEDULER_TaskContext *tc) |
272 | GNUNET_PeerIdentity * peer, | ||
273 | unsigned int bpm_in, | ||
274 | unsigned int bpm_out, | ||
275 | struct GNUNET_TIME_Relative | ||
276 | latency, int amount, | ||
277 | unsigned long long preference) | ||
278 | { | 266 | { |
279 | struct DisconnectList *dl = cls; | 267 | struct DisconnectList *dl = cls; |
280 | 268 | ||
@@ -620,11 +608,15 @@ reschedule_hellos (struct PeerList *peer) | |||
620 | * | 608 | * |
621 | * @param cls closure | 609 | * @param cls closure |
622 | * @param peer peer identity this notification is about | 610 | * @param peer peer identity this notification is about |
611 | * @param latency reported latency of the connection with 'other' | ||
612 | * @param distance reported distance (DV) to 'other' | ||
623 | */ | 613 | */ |
624 | static void | 614 | static void |
625 | connect_notify (void *cls, | 615 | connect_notify (void *cls, |
626 | const struct | 616 | const struct |
627 | GNUNET_PeerIdentity * peer) | 617 | GNUNET_PeerIdentity * peer, |
618 | struct GNUNET_TIME_Relative latency, | ||
619 | uint32_t distance) | ||
628 | { | 620 | { |
629 | struct PeerList *pos; | 621 | struct PeerList *pos; |
630 | 622 | ||
@@ -1092,6 +1084,8 @@ read_friends_file (const struct GNUNET_CONFIGURATION_Handle *cfg) | |||
1092 | * @param other the other peer involved (sender or receiver, NULL | 1084 | * @param other the other peer involved (sender or receiver, NULL |
1093 | * for loopback messages where we are both sender and receiver) | 1085 | * for loopback messages where we are both sender and receiver) |
1094 | * @param message the actual HELLO message | 1086 | * @param message the actual HELLO message |
1087 | * @param latency reported latency of the connection with 'other' | ||
1088 | * @param distance reported distance (DV) to 'other' | ||
1095 | * @return GNUNET_OK to keep the connection open, | 1089 | * @return GNUNET_OK to keep the connection open, |
1096 | * GNUNET_SYSERR to close it (signal serious error) | 1090 | * GNUNET_SYSERR to close it (signal serious error) |
1097 | */ | 1091 | */ |
@@ -1099,7 +1093,9 @@ static int | |||
1099 | handle_encrypted_hello (void *cls, | 1093 | handle_encrypted_hello (void *cls, |
1100 | const struct GNUNET_PeerIdentity * other, | 1094 | const struct GNUNET_PeerIdentity * other, |
1101 | const struct GNUNET_MessageHeader * | 1095 | const struct GNUNET_MessageHeader * |
1102 | message) | 1096 | message, |
1097 | struct GNUNET_TIME_Relative latency, | ||
1098 | uint32_t distance) | ||
1103 | { | 1099 | { |
1104 | #if DEBUG_TOPOLOGY | 1100 | #if DEBUG_TOPOLOGY |
1105 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 1101 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
@@ -1213,7 +1209,7 @@ cleaning_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
1213 | GNUNET_CONTAINER_DLL_remove (disconnect_head, | 1209 | GNUNET_CONTAINER_DLL_remove (disconnect_head, |
1214 | disconnect_tail, | 1210 | disconnect_tail, |
1215 | dl); | 1211 | dl); |
1216 | GNUNET_CORE_peer_get_info_cancel (dl->rh); | 1212 | GNUNET_CORE_peer_request_cancel (dl->rh); |
1217 | GNUNET_free (dl); | 1213 | GNUNET_free (dl); |
1218 | } | 1214 | } |
1219 | } | 1215 | } |