aboutsummaryrefslogtreecommitdiff
path: root/src/hostlist/hostlist-client.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/hostlist/hostlist-client.c')
-rw-r--r--src/hostlist/hostlist-client.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/src/hostlist/hostlist-client.c b/src/hostlist/hostlist-client.c
index 9e5cbda65..503adb8a0 100644
--- a/src/hostlist/hostlist-client.c
+++ b/src/hostlist/hostlist-client.c
@@ -1137,15 +1137,13 @@ task_hostlist_saving (void *cls,
1137 * 1137 *
1138 * @param cls closure 1138 * @param cls closure
1139 * @param peer peer identity this notification is about 1139 * @param peer peer identity this notification is about
1140 * @param latency reported latency of the connection with 'other' 1140 * @param atsi performance data
1141 * @param distance reported distance (DV) to 'other'
1142 */ 1141 */
1143static void 1142static void
1144handler_connect (void *cls, 1143handler_connect (void *cls,
1145 const struct 1144 const struct
1146 GNUNET_PeerIdentity * peer, 1145 GNUNET_PeerIdentity * peer,
1147 struct GNUNET_TIME_Relative latency, 1146 const struct GNUNET_TRANSPORT_ATS_Information *atsi)
1148 uint32_t distance)
1149{ 1147{
1150 GNUNET_assert (stat_connection_count < UINT_MAX); 1148 GNUNET_assert (stat_connection_count < UINT_MAX);
1151 stat_connection_count++; 1149 stat_connection_count++;
@@ -1181,17 +1179,15 @@ handler_disconnect (void *cls,
1181 * @param cls closure (always NULL) 1179 * @param cls closure (always NULL)
1182 * @param peer the peer sending the message 1180 * @param peer the peer sending the message
1183 * @param message the actual message 1181 * @param message the actual message
1184 * @param latency latency 1182 * @param atsi performance data
1185 * @param distance distance
1186 * @return GNUNET_OK to keep the connection open, 1183 * @return GNUNET_OK to keep the connection open,
1187 * GNUNET_SYSERR to close it (signal serious error) 1184 * GNUNET_SYSERR to close it (signal serious error)
1188 */ 1185 */
1189static int 1186static int
1190handler_advertisement (void *cls, 1187handler_advertisement (void *cls,
1191 const struct GNUNET_PeerIdentity * peer, 1188 const struct GNUNET_PeerIdentity * peer,
1192 const struct GNUNET_MessageHeader * message, 1189 const struct GNUNET_MessageHeader * message,
1193 struct GNUNET_TIME_Relative latency, 1190 const struct GNUNET_TRANSPORT_ATS_Information *atsi)
1194 uint32_t distance)
1195{ 1191{
1196 size_t size; 1192 size_t size;
1197 size_t uri_size; 1193 size_t uri_size;