struct GNUNET_ATS_Information *ats_new;
if (GNUNET_NO == GNUNET_ATS_session_known (GST_ats, address, session))
- return;
+ return;
- /* Call to manipulation to manipulate ATS information */
- ats_new = GST_manipulation_manipulate_metrics (peer, address, session, ats, ats_count);
- if (NULL == ats_new)
- {
- GNUNET_break (0);
- return;
- }
- if (GNUNET_NO == GNUNET_ATS_address_update (GST_ats, address, session, ats_new, ats_count))
+ /* Call to manipulation to manipulate ATS information */
+ ats_new = GST_manipulation_manipulate_metrics (peer, address, session, ats,
+ ats_count);
+ if (NULL == ats_new)
+ {
+ GNUNET_break(0);
+ return;
+ }
+ if (GNUNET_NO == GNUNET_ATS_address_update (GST_ats,
+ address, session, ats_new, ats_count))
{
- GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
- _("Address or session unknown: failed to update properties for peer `%s' plugin `%s' address `%s' session %p\n"),
- GNUNET_i2s (peer), address->transport_name, GST_plugins_a2s (address), session);
+ GNUNET_log(GNUNET_ERROR_TYPE_ERROR,
+ _("Address or session unknown: failed to update properties for peer `%s' plugin `%s' address `%s' session %p\n"),
+ GNUNET_i2s (peer), address->transport_name, GST_plugins_a2s (address),
+ session);
}
- GNUNET_free (ats_new);
+ GNUNET_free(ats_new);
}