- fix error check
[oweals/gnunet.git] / src / mesh / test_mesh_api.c
index 43505d773143f53f703027746fefff99d90634c4..dcac19085ef4348d716ea38252ecc72f512c5386 100644 (file)
@@ -101,7 +101,7 @@ run (void *cls,
   static const GNUNET_MESH_ApplicationType app[] =
     { 1, 2, 3, 4, 5, 6, 7, 8, 0 };
 
-  mesh = GNUNET_MESH_connect (cfg, 10, NULL, NULL, NULL, handlers, app);
+  mesh = GNUNET_MESH_connect (cfg, NULL, NULL, NULL, handlers, app);
   if (NULL == mesh)
   {
     GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "test: Couldn't connect to mesh :(\n");
@@ -126,6 +126,7 @@ run (void *cls,
 int
 main (int argc, char *argv[])
 {
+  result = GNUNET_OK;
   if (0 != GNUNET_TESTING_peer_run ("test-mesh-api",
                                    "test_mesh.conf",
                                    &run, NULL))