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,
remove_element_str (set1, "foo");
add_element_str (set1, "eggs");
remove_element_str (set1, "foo");
add_element_str (set1, "eggs");