aboutsummaryrefslogtreecommitdiff
path: root/src/cadet/gnunet-service-cadet_peer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cadet/gnunet-service-cadet_peer.c')
-rw-r--r--src/cadet/gnunet-service-cadet_peer.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cadet/gnunet-service-cadet_peer.c b/src/cadet/gnunet-service-cadet_peer.c
index 918bf4e0c..c1e2d3224 100644
--- a/src/cadet/gnunet-service-cadet_peer.c
+++ b/src/cadet/gnunet-service-cadet_peer.c
@@ -655,7 +655,7 @@ connect_to_core (const struct GNUNET_CONFIGURATION_Handle *c)
655 NULL), 655 NULL),
656 GNUNET_MQ_handler_end () 656 GNUNET_MQ_handler_end ()
657 }; 657 };
658 core_handle = GNUNET_CORE_connecT (c, NULL, 658 core_handle = GNUNET_CORE_connect (c, NULL,
659 &core_init_notify, 659 &core_init_notify,
660 &core_connect_handler, 660 &core_connect_handler,
661 &core_disconnect_handler, 661 &core_disconnect_handler,
@@ -686,7 +686,7 @@ core_init_notify (void *cls,
686 LOG (GNUNET_ERROR_TYPE_ERROR, _("Wrong CORE service\n")); 686 LOG (GNUNET_ERROR_TYPE_ERROR, _("Wrong CORE service\n"));
687 LOG (GNUNET_ERROR_TYPE_ERROR, " core id %s\n", GNUNET_i2s (core_identity)); 687 LOG (GNUNET_ERROR_TYPE_ERROR, " core id %s\n", GNUNET_i2s (core_identity));
688 LOG (GNUNET_ERROR_TYPE_ERROR, " my id %s\n", GNUNET_i2s (&my_full_id)); 688 LOG (GNUNET_ERROR_TYPE_ERROR, " my id %s\n", GNUNET_i2s (&my_full_id));
689 GNUNET_CORE_disconnecT (core_handle); 689 GNUNET_CORE_disconnect (core_handle);
690 connect_to_core (c); 690 connect_to_core (c);
691 return; 691 return;
692 } 692 }
@@ -1325,12 +1325,12 @@ GCP_shutdown (void)
1325 in_shutdown = GNUNET_YES; 1325 in_shutdown = GNUNET_YES;
1326 if (NULL != core_handle) 1326 if (NULL != core_handle)
1327 { 1327 {
1328 GNUNET_CORE_disconnecT (core_handle); 1328 GNUNET_CORE_disconnect (core_handle);
1329 core_handle = NULL; 1329 core_handle = NULL;
1330 } 1330 }
1331 GNUNET_PEER_change_rc (myid, -1); 1331 GNUNET_PEER_change_rc (myid, -1);
1332 /* With MQ API, CORE calls the disconnect handler for every peer 1332 /* With MQ API, CORE calls the disconnect handler for every peer
1333 * after calling GNUNET_CORE_disconnecT, shutdown must occur *after* that. 1333 * after calling GNUNET_CORE_disconnect, shutdown must occur *after* that.
1334 */ 1334 */
1335 GNUNET_CONTAINER_multipeermap_iterate (peers, 1335 GNUNET_CONTAINER_multipeermap_iterate (peers,
1336 &shutdown_peer, 1336 &shutdown_peer,