diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-06-19 22:16:24 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-06-19 22:16:24 +0000 |
commit | a21395e6167baf219d4dee67f40206ff1ee1eb0d (patch) | |
tree | dc0e339a10b6a20a29da6c67b8d7915d3f20cb06 /src/set | |
parent | 8b1a351c049deec3226aa40a883b97c76916bea7 (diff) | |
download | gnunet-a21395e6167baf219d4dee67f40206ff1ee1eb0d.tar.gz gnunet-a21395e6167baf219d4dee67f40206ff1ee1eb0d.zip |
use new connecT API
Diffstat (limited to 'src/set')
-rw-r--r-- | src/set/set_api.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/src/set/set_api.c b/src/set/set_api.c index 826b6a63c..0b99c7bf6 100644 --- a/src/set/set_api.c +++ b/src/set/set_api.c | |||
@@ -579,21 +579,18 @@ create_internal (const struct GNUNET_CONFIGURATION_Handle *cfg, | |||
579 | struct GNUNET_MQ_Envelope *mqm; | 579 | struct GNUNET_MQ_Envelope *mqm; |
580 | struct GNUNET_SET_CreateMessage *create_msg; | 580 | struct GNUNET_SET_CreateMessage *create_msg; |
581 | struct GNUNET_SET_CopyLazyConnectMessage *copy_msg; | 581 | struct GNUNET_SET_CopyLazyConnectMessage *copy_msg; |
582 | struct GNUNET_CLIENT_Connection *client; | ||
583 | 582 | ||
584 | set->cfg = cfg; | 583 | set->cfg = cfg; |
585 | client = GNUNET_CLIENT_connect ("set", cfg); | 584 | set->mq = GNUNET_CLIENT_connecT (cfg, |
586 | if (NULL == client) | 585 | "set", |
586 | mq_handlers, | ||
587 | &handle_client_set_error, | ||
588 | set); | ||
589 | if (NULL == set->mq) | ||
587 | { | 590 | { |
588 | GNUNET_free (set); | 591 | GNUNET_free (set); |
589 | return NULL; | 592 | return NULL; |
590 | } | 593 | } |
591 | set->mq = GNUNET_MQ_queue_for_connection_client (client, | ||
592 | mq_handlers, | ||
593 | &handle_client_set_error, | ||
594 | set); | ||
595 | GNUNET_assert (NULL != set->mq); | ||
596 | |||
597 | if (NULL == cookie) | 594 | if (NULL == cookie) |
598 | { | 595 | { |
599 | LOG (GNUNET_ERROR_TYPE_DEBUG, | 596 | LOG (GNUNET_ERROR_TYPE_DEBUG, |