- adding GNUNET_ATS_address_add functionality .. no changes to scheduling API yet
[oweals/gnunet.git] / src / ats / ats_api_performance.c
index 9739ac1e5662b46fd5c01f16c8ff206eefe07951..c98e1c243e898cc76aba6a5b2071ee7589400495 100644 (file)
@@ -307,8 +307,8 @@ process_pi_message (struct GNUNET_ATS_PerformanceHandle *ph,
   address.address = plugin_address;
   address.address_length = plugin_address_length;
   address.transport_name = plugin_name;
-  ph->infocb (ph->infocb_cls, &address,
-              pi->bandwidth_out, pi->bandwidth_in, atsi, ats_count);
+  ph->infocb (ph->infocb_cls, &address, pi->bandwidth_out, pi->bandwidth_in,
+              atsi, ats_count);
   return GNUNET_OK;
 }
 
@@ -390,13 +390,12 @@ process_ats_message (void *cls, const struct GNUNET_MessageHeader *msg)
   default:
     GNUNET_break (0);
     goto reconnect;
-    return;
   }
   GNUNET_CLIENT_receive (ph->client, &process_ats_message, ph,
                          GNUNET_TIME_UNIT_FOREVER_REL);
   return;
 reconnect:
-  GNUNET_CLIENT_disconnect (ph->client, GNUNET_NO);
+  GNUNET_CLIENT_disconnect (ph->client);
   ph->client = NULL;
   ph->task =
       GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_SECONDS, &reconnect_task,
@@ -494,7 +493,7 @@ GNUNET_ATS_performance_done (struct GNUNET_ATS_PerformanceHandle *ph)
   }
   if (NULL != ph->client)
   {
-    GNUNET_CLIENT_disconnect (ph->client, GNUNET_NO);
+    GNUNET_CLIENT_disconnect (ph->client);
     ph->client = NULL;
   }
   GNUNET_free (ph);