GNUnet is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published
GNUnet is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published
{
struct GNUNET_SET_Element element;
element.element_type = 0;
element.data = str;
element.size = strlen (str);
{
struct GNUNET_SET_Element element;
element.element_type = 0;
element.data = str;
element.size = strlen (str);
{
struct GNUNET_SET_Element element;
element.element_type = 0;
element.data = str;
element.size = strlen (str);
{
struct GNUNET_SET_Element element;
element.element_type = 0;
element.data = str;
element.size = strlen (str);
check_count (struct GNUNET_SET_Handle *set,
char *what,
unsigned int expected_count,
check_count (struct GNUNET_SET_Handle *set,
char *what,
unsigned int expected_count,
- GNUNET_assert (GNUNET_YES == GNUNET_SET_iterate (set, check_count_iter, ci_cls));
+ GNUNET_assert (GNUNET_YES ==
+ GNUNET_SET_iterate (set,
+ &check_count_iter,
+ ci_cls));
remove_element_str (set2, "new3");
// Check that set1 didn't change.
check_count (set1, "old set", 3,
remove_element_str (set2, "new3");
// Check that set1 didn't change.
check_count (set1, "old set", 3,
const struct GNUNET_CONFIGURATION_Handle *cfg,
struct GNUNET_TESTING_Peer *peer)
{
const struct GNUNET_CONFIGURATION_Handle *cfg,
struct GNUNET_TESTING_Peer *peer)
{
- GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 5),
- &timeout_fail,
- NULL);
-
+ tt = GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 5),
+ &timeout_fail,
+ NULL);
+ GNUNET_SCHEDULER_add_shutdown (&do_shutdown,
+ NULL);
remove_element_str (set1, "foo");
add_element_str (set1, "eggs");
remove_element_str (set1, "foo");
add_element_str (set1, "eggs");