GNUNET_SCHEDULER_shutdown ();
}
+
static void
-handle_shutdown (void *cls,
- const struct GNUNET_SCHEDULER_TaskContext * tc)
+handle_shutdown (void *cls)
{
if (NULL != keygen)
{
}
}
+
static void
run (void *cls,
const struct GNUNET_CONFIGURATION_Handle *cfg,
struct GNUNET_TESTING_Peer *peer)
{
- struct GNUNET_HashCode session_id;
+ struct GNUNET_HashCode session_id;
struct GNUNET_TIME_Absolute start;
struct GNUNET_TIME_Absolute deadline;
- GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_FOREVER_REL,
- handle_shutdown, NULL);
+ GNUNET_SCHEDULER_add_shutdown (&handle_shutdown, NULL);
GNUNET_log (GNUNET_ERROR_TYPE_INFO, "testing secretsharing api\n");
return ret;
return (GNUNET_YES == success) ? 0 : 1;
}
-