doc: gnunet-c-tutorial: Add nodes.
[oweals/gnunet.git] / src / core / test_core_api.c
index 568832c085e45405320c53b1dafd7a9c90fe4c7f..847ba6e757543af6de9b60988204686e33abe285 100644 (file)
@@ -92,7 +92,7 @@ terminate_peer (struct PeerContext *p)
 {
   if (NULL != p->ch)
   {
-    GNUNET_CORE_disconnecT (p->ch);
+    GNUNET_CORE_disconnect (p->ch);
     p->ch = NULL;
   }
   if (NULL != p->ghh)
@@ -243,7 +243,7 @@ init_notify (void *cls,
     GNUNET_assert (ok == 2);
     OKPP;
     /* connect p2 */
-    p2.ch = GNUNET_CORE_connecT (p2.cfg,
+    p2.ch = GNUNET_CORE_connect (p2.cfg,
                                 &p2,
                                 &init_notify,
                                 &connect_notify,
@@ -302,7 +302,7 @@ run (void *cls,
     GNUNET_MQ_hd_fixed_size (test,
                              MTYPE,
                              struct GNUNET_MessageHeader,
-                             NULL);
+                             NULL),
     GNUNET_MQ_handler_end ()
   };
 
@@ -317,7 +317,7 @@ run (void *cls,
                                     (GNUNET_TIME_UNIT_SECONDS, 300),
                                     &terminate_task_error, NULL);
   p1.ch =
-      GNUNET_CORE_connecT (p1.cfg,
+      GNUNET_CORE_connect (p1.cfg,
                           &p1,
                            &init_notify,
                            &connect_notify,