aboutsummaryrefslogtreecommitdiff
path: root/src/transport/gnunet-service-transport.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-03-25 12:21:50 +0000
committerChristian Grothoff <christian@grothoff.org>2013-03-25 12:21:50 +0000
commitea69f50952d863c6e7250bc92559a3dca27ce97b (patch)
tree6dfa1aa9279518b44588bf23b6b11532e2da8bea /src/transport/gnunet-service-transport.c
parent654ebcd8d7fe00a0ecde4871b1fc79e4030aa201 (diff)
downloadgnunet-ea69f50952d863c6e7250bc92559a3dca27ce97b.tar.gz
gnunet-ea69f50952d863c6e7250bc92559a3dca27ce97b.zip
-const
Diffstat (limited to 'src/transport/gnunet-service-transport.c')
-rw-r--r--src/transport/gnunet-service-transport.c24
1 files changed, 13 insertions, 11 deletions
diff --git a/src/transport/gnunet-service-transport.c b/src/transport/gnunet-service-transport.c
index 54342bfde..a9ad57df1 100644
--- a/src/transport/gnunet-service-transport.c
+++ b/src/transport/gnunet-service-transport.c
@@ -394,16 +394,18 @@ plugin_env_address_to_type (void *cls,
394 return GNUNET_ATS_address_get_type(GST_ats, addr, addrlen); 394 return GNUNET_ATS_address_get_type(GST_ats, addr, addrlen);
395} 395}
396 396
397
397void 398void
398GST_update_ats_metrics (struct GNUNET_PeerIdentity *peer, 399GST_update_ats_metrics (const struct GNUNET_PeerIdentity *peer,
399 struct GNUNET_HELLO_Address *address, 400 const struct GNUNET_HELLO_Address *address,
400 struct Session *session, 401 struct Session *session,
401 struct GNUNET_ATS_Information *ats, 402 const struct GNUNET_ATS_Information *ats,
402 uint32_t ats_count) 403 uint32_t ats_count)
403{ 404{
404 GNUNET_ATS_address_update (GST_ats, address, session, ats, ats_count); 405 GNUNET_ATS_address_update (GST_ats, address, session, ats, ats_count);
405} 406}
406 407
408
407/** 409/**
408 * Function that will be called to figure if an address is an loopback, 410 * Function that will be called to figure if an address is an loopback,
409 * LAN, WAN etc. address 411 * LAN, WAN etc. address
@@ -418,12 +420,12 @@ GST_update_ats_metrics (struct GNUNET_PeerIdentity *peer,
418 */ 420 */
419static void 421static void
420plugin_env_update_metrics (void *cls, 422plugin_env_update_metrics (void *cls,
421 struct GNUNET_PeerIdentity *peer, 423 const struct GNUNET_PeerIdentity *peer,
422 const void *address, 424 const void *address,
423 uint16_t address_len, 425 uint16_t address_len,
424 struct Session *session, 426 struct Session *session,
425 struct GNUNET_ATS_Information *ats, 427 const struct GNUNET_ATS_Information *ats,
426 uint32_t ats_count) 428 uint32_t ats_count)
427{ 429{
428 struct GNUNET_HELLO_Address haddress; 430 struct GNUNET_HELLO_Address haddress;
429 const char *plugin_name = cls; 431 const char *plugin_name = cls;