* @param cls closure, unused
* @param tc context, unused
*/
-static void cps_loop (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc);
+static void
+cps_loop (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc);
/**
break;
case GNUNET_SYSERR:
if (quiet != GNUNET_YES)
- fprintf (stdout,
- _("Some error communicating with service `%s'.\n"), service);
+ fprintf (stdout, _("Some error communicating with service `%s'.\n"),
+ service);
ret = 1;
break;
}
- GNUNET_SCHEDULER_add_continuation (&cps_loop,
- NULL, GNUNET_SCHEDULER_REASON_PREREQ_DONE);
+ GNUNET_SCHEDULER_add_continuation (&cps_loop, NULL,
+ GNUNET_SCHEDULER_REASON_PREREQ_DONE);
}
if (quiet != GNUNET_YES)
fprintf (stdout, _("Service `%s' is not running.\n"), service);
}
- GNUNET_SCHEDULER_add_continuation (&cps_loop,
- NULL, GNUNET_SCHEDULER_REASON_PREREQ_DONE);
+ GNUNET_SCHEDULER_add_continuation (&cps_loop, NULL,
+ GNUNET_SCHEDULER_REASON_PREREQ_DONE);
}
* @param c configuration
*/
static void
-run (void *cls,
- char *const *args,
- const char *cfgfile, const struct GNUNET_CONFIGURATION_Handle *c)
+run (void *cls, char *const *args, const char *cfgfile,
+ const struct GNUNET_CONFIGURATION_Handle *c)
{
cfg = c;
config_file = cfgfile;
ret = 1;
return;
}
- GNUNET_SCHEDULER_add_continuation (&cps_loop,
- NULL, GNUNET_SCHEDULER_REASON_PREREQ_DONE);
+ GNUNET_SCHEDULER_add_continuation (&cps_loop, NULL,
+ GNUNET_SCHEDULER_REASON_PREREQ_DONE);
}
/**
if (temp_timeout_ms > 0)
timeout.rel_value = temp_timeout_ms;
- if (GNUNET_OK == GNUNET_PROGRAM_run (argc,
- argv,
- "gnunet-arm",
- gettext_noop
- ("Control services and the Automated Restart Manager (ARM)"),
- options, &run, NULL))
+ if (GNUNET_OK ==
+ GNUNET_PROGRAM_run (argc, argv, "gnunet-arm",
+ gettext_noop
+ ("Control services and the Automated Restart Manager (ARM)"),
+ options, &run, NULL))
{
return ret;
}