how did this test ever work without assigning core handles?
[oweals/gnunet.git] / src / core / test_core_api.c
index 9aaecea1040cf18857088a9c07076cbda5ed77f9..348bd89750a0d1a773dde8c2c18dc71200188700 100644 (file)
@@ -264,16 +264,14 @@ connect_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
 
 
 static void
-init_notify (void *cls, struct GNUNET_CORE_Handle *server,
+init_notify (void *cls, 
              const struct GNUNET_PeerIdentity *my_identity)
 {
   struct PeerContext *p = cls;
 
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Core connection to `%4s' established\n",
               GNUNET_i2s (my_identity));
-  GNUNET_assert (server != NULL);
   p->id = *my_identity;
-  p->ch = server;
   if (cls == &p1)
   {
     GNUNET_assert (ok == 2);
@@ -350,7 +348,7 @@ stop_arm (struct PeerContext *p)
 
 
 int
-main (int argc, char *argv[])
+main (int argc, char *argv1[])
 {
   char *const argv[] = { "test-core-api",
     "-c",