summaryrefslogtreecommitdiff
path: root/src/transport/gnunet-service-transport_validation.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-02-02 23:03:04 +0000
committerChristian Grothoff <christian@grothoff.org>2015-02-02 23:03:04 +0000
commit5cc8737d69e25eacb662824cd725db61c73b5dd4 (patch)
treeb61d0f1b502b8b11ca3f55637cbfb2c5d9cabf96 /src/transport/gnunet-service-transport_validation.c
parentffd9516faaaa7d2a9595039d10a759bb07988b77 (diff)
get_address_latency also does not use session
Diffstat (limited to 'src/transport/gnunet-service-transport_validation.c')
-rw-r--r--src/transport/gnunet-service-transport_validation.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/transport/gnunet-service-transport_validation.c b/src/transport/gnunet-service-transport_validation.c
index b2948d086..e6e27a90d 100644
--- a/src/transport/gnunet-service-transport_validation.c
+++ b/src/transport/gnunet-service-transport_validation.c
@@ -1644,19 +1644,21 @@ GST_validation_set_address_use (const struct GNUNET_HELLO_Address *address,
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"Error setting address in use for peer `%s' `%s' to USED\n",
- GNUNET_i2s (&address->peer), GST_plugins_a2s (address));
+ GNUNET_i2s (&address->peer),
+ GST_plugins_a2s (address));
}
if (GNUNET_NO == in_use)
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"Error setting address in use for peer `%s' `%s' to NOT_USED\n",
- GNUNET_i2s (&address->peer), GST_plugins_a2s (address));
+ GNUNET_i2s (&address->peer),
+ GST_plugins_a2s (address));
}
}
GNUNET_break (ve->in_use != in_use); /* should be different... */
ve->in_use = in_use;
- if (in_use == GNUNET_YES)
+ if (GNUNET_YES == in_use)
{
/* from now on, higher frequeny, so reschedule now */
if (NULL != ve->revalidation_task)
@@ -1671,13 +1673,11 @@ GST_validation_set_address_use (const struct GNUNET_HELLO_Address *address,
* address.
*
* @param address the address
- * @param session session
* @return observed latency of the address, FOREVER if the address was
* never successfully validated
*/
struct GNUNET_TIME_Relative
-GST_validation_get_address_latency (const struct GNUNET_HELLO_Address *address,
- struct Session *session)
+GST_validation_get_address_latency (const struct GNUNET_HELLO_Address *address)
{
struct ValidationEntry *ve;
@@ -1691,13 +1691,13 @@ GST_validation_get_address_latency (const struct GNUNET_HELLO_Address *address,
GNUNET_break (0); /* but we don't have the plugin! */
return GNUNET_TIME_UNIT_FOREVER_REL;
}
-
ve = find_validation_entry (address);
if (NULL == ve)
return GNUNET_TIME_UNIT_FOREVER_REL;
return ve->latency;
}
+
/**
* Closure for the validation_entries_iterate function.
*/
@@ -1751,7 +1751,7 @@ validation_entries_iterate (void *cls,
* Iterate over all iteration entries
*
* @param cb function to call
- * @param cb_cls closure for cb
+ * @param cb_cls closure for @a cb
*/
void
GST_validation_iterate (GST_ValidationChangedCallback cb,