aboutsummaryrefslogtreecommitdiff
path: root/src/arm/test_exponential_backoff.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-04-14 20:45:25 +0000
committerChristian Grothoff <christian@grothoff.org>2013-04-14 20:45:25 +0000
commit08676aaa5b76a0723c8c60ee510aec3652e50774 (patch)
tree0c1ccb9bd806733aba38f76c79499cb0f3cec048 /src/arm/test_exponential_backoff.c
parentce52e258a28a17f5c319549fda1b5fbb8f6169a7 (diff)
downloadgnunet-08676aaa5b76a0723c8c60ee510aec3652e50774.tar.gz
gnunet-08676aaa5b76a0723c8c60ee510aec3652e50774.zip
-remove unnecessary arguments from ARM callbacks
Diffstat (limited to 'src/arm/test_exponential_backoff.c')
-rw-r--r--src/arm/test_exponential_backoff.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/arm/test_exponential_backoff.c b/src/arm/test_exponential_backoff.c
index 00402b29f..21d2c4f3e 100644
--- a/src/arm/test_exponential_backoff.c
+++ b/src/arm/test_exponential_backoff.c
@@ -284,7 +284,7 @@ trigger_disconnect (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
284 284
285 285
286static void 286static void
287arm_stop_cb (void *cls, struct GNUNET_ARM_Handle *h, enum GNUNET_ARM_RequestStatus status, const char *servicename, enum GNUNET_ARM_Result result) 287arm_stop_cb (void *cls, enum GNUNET_ARM_RequestStatus status, const char *servicename, enum GNUNET_ARM_Result result)
288{ 288{
289 GNUNET_break (status == GNUNET_ARM_REQUEST_SENT_OK); 289 GNUNET_break (status == GNUNET_ARM_REQUEST_SENT_OK);
290 GNUNET_break (result == GNUNET_ARM_RESULT_STOPPING); 290 GNUNET_break (result == GNUNET_ARM_RESULT_STOPPING);
@@ -294,7 +294,7 @@ arm_stop_cb (void *cls, struct GNUNET_ARM_Handle *h, enum GNUNET_ARM_RequestStat
294 294
295 295
296static void 296static void
297srv_status (void *cls, struct GNUNET_ARM_MonitorHandle *mon, const char *service, enum GNUNET_ARM_ServiceStatus status) 297srv_status (void *cls, const char *service, enum GNUNET_ARM_ServiceStatus status)
298{ 298{
299 LOG ("Service %s is %u, phase %u\n", service, status, phase); 299 LOG ("Service %s is %u, phase %u\n", service, status, phase);
300 if (status == GNUNET_ARM_SERVICE_MONITORING_STARTED) 300 if (status == GNUNET_ARM_SERVICE_MONITORING_STARTED)
@@ -334,7 +334,7 @@ srv_status (void *cls, struct GNUNET_ARM_MonitorHandle *mon, const char *service
334 334
335 335
336static void 336static void
337arm_start_cb (void *cls, struct GNUNET_ARM_Handle *h, enum GNUNET_ARM_RequestStatus status, const char *servicename, enum GNUNET_ARM_Result result) 337arm_start_cb (void *cls, enum GNUNET_ARM_RequestStatus status, const char *servicename, enum GNUNET_ARM_Result result)
338{ 338{
339 GNUNET_break (status == GNUNET_ARM_REQUEST_SENT_OK); 339 GNUNET_break (status == GNUNET_ARM_REQUEST_SENT_OK);
340 GNUNET_break (result == GNUNET_ARM_RESULT_STARTING); 340 GNUNET_break (result == GNUNET_ARM_RESULT_STARTING);
@@ -366,7 +366,7 @@ task (void *cls, char *const *args, const char *cfgfile,
366 arm = GNUNET_ARM_connect (cfg, NULL, NULL); 366 arm = GNUNET_ARM_connect (cfg, NULL, NULL);
367 if (NULL != arm) 367 if (NULL != arm)
368 { 368 {
369 mon = GNUNET_ARM_monitor (cfg, srv_status, NULL); 369 mon = GNUNET_ARM_monitor (cfg, &srv_status, NULL);
370 if (NULL != mon) 370 if (NULL != mon)
371 { 371 {
372#if START_ARM 372#if START_ARM