/*
This file is part of GNUnet.
- (C) 2012-2014 Christian Grothoff (and other contributing authors)
+ Copyright (C) 2012-2014 Christian Grothoff (and other contributing authors)
GNUnet is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published
You should have received a copy of the GNU General Public License
along with GNUnet; see the file COPYING. If not, write to the
- Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- Boston, MA 02111-1307, USA.
+ Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ Boston, MA 02110-1301, USA.
*/
/**
enum GNUNET_SET_Status status)
{
static int count;
+
switch (status)
{
case GNUNET_SET_STATUS_OK:
&listen_cb, NULL);
oh = GNUNET_SET_prepare (&local_id,
&app_id,
- &context_msg, 42,
+ &context_msg,
GNUNET_SET_RESULT_FULL,
&result_cb_set1, NULL);
GNUNET_SET_commit (oh, set1);
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
"initializing set 2\n");
- element.type = 0;
+ element.element_type = 0;
element.data = "hello";
element.size = strlen(element.data);
GNUNET_SET_add_element (set2, &element, NULL, NULL);
{
struct GNUNET_SET_Element element;
- element.type = 0;
+ element.element_type = 0;
element.data = "hello";
element.size = strlen(element.data);
GNUNET_SET_add_element (set1, &element, NULL, NULL);
struct GNUNET_SET_Handle *iter_set;
iter_set = GNUNET_SET_create (config, GNUNET_SET_OPERATION_INTERSECTION);
- element.type = 0;
+ element.element_type = 0;
element.data = "hello";
element.size = strlen(element.data);
GNUNET_SET_add_element (iter_set, &element, NULL, NULL);
{
config = cfg;
GNUNET_TESTING_peer_get_identity (peer, &local_id);
- test_iter ();
+ if (0) test_iter ();
set1 = GNUNET_SET_create (cfg, GNUNET_SET_OPERATION_INTERSECTION);
set2 = GNUNET_SET_create (cfg, GNUNET_SET_OPERATION_INTERSECTION);