summaryrefslogtreecommitdiff
path: root/src/testing
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-07-05 16:32:34 +0200
committerChristian Grothoff <christian@grothoff.org>2020-07-05 16:32:34 +0200
commite31c1d4a9f78c4e31fda1f98fe349b33abdd01a2 (patch)
tree61df772a93f7f21af7c715ddd4b9a3f1a50e0509 /src/testing
parent1437556645417e6302862845e7ebcbd4c9908357 (diff)
GNUNET_free_non_null -> GNUNET_free
Diffstat (limited to 'src/testing')
-rw-r--r--src/testing/gnunet-testing.c2
-rw-r--r--src/testing/test_testing_peerstartup.c2
-rw-r--r--src/testing/test_testing_peerstartup2.c2
-rw-r--r--src/testing/test_testing_sharedservices.c2
-rw-r--r--src/testing/testing.c24
5 files changed, 16 insertions, 16 deletions
diff --git a/src/testing/gnunet-testing.c b/src/testing/gnunet-testing.c
index a9e5042b2..88906e5fa 100644
--- a/src/testing/gnunet-testing.c
+++ b/src/testing/gnunet-testing.c
@@ -365,7 +365,7 @@ run_no_scheduler (void *cls,
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Extracting hostkey %u\n", create_no);
ret = create_hostkeys (create_no);
}
- GNUNET_free_non_null (create_cfg_template);
+ GNUNET_free (create_cfg_template);
}
diff --git a/src/testing/test_testing_peerstartup.c b/src/testing/test_testing_peerstartup.c
index 4e21fedc9..25cbb2a9f 100644
--- a/src/testing/test_testing_peerstartup.c
+++ b/src/testing/test_testing_peerstartup.c
@@ -118,7 +118,7 @@ run (void *cls, char *const *args, const char *cfgfile,
end:
GNUNET_SCHEDULER_add_now (&do_shutdown, test_ctx);
- GNUNET_free_non_null (emsg);
+ GNUNET_free (emsg);
}
diff --git a/src/testing/test_testing_peerstartup2.c b/src/testing/test_testing_peerstartup2.c
index 26948b7c5..8d357cb08 100644
--- a/src/testing/test_testing_peerstartup2.c
+++ b/src/testing/test_testing_peerstartup2.c
@@ -197,7 +197,7 @@ run (void *cls, char *const *args, const char *cfgfile,
end:
FAIL_TEST (0);
GNUNET_SCHEDULER_add_now (&do_shutdown, test_ctx);
- GNUNET_free_non_null (emsg);
+ GNUNET_free (emsg);
}
diff --git a/src/testing/test_testing_sharedservices.c b/src/testing/test_testing_sharedservices.c
index 77def3453..d2f760d7a 100644
--- a/src/testing/test_testing_sharedservices.c
+++ b/src/testing/test_testing_sharedservices.c
@@ -139,7 +139,7 @@ run (void *cls, char *const *args, const char *cfgfile,
end:
GNUNET_SCHEDULER_add_now (&do_shutdown, test_ctx);
- GNUNET_free_non_null (emsg);
+ GNUNET_free (emsg);
}
diff --git a/src/testing/testing.c b/src/testing/testing.c
index 23bc40d7e..0ca4c3063 100644
--- a/src/testing/testing.c
+++ b/src/testing/testing.c
@@ -473,8 +473,8 @@ cleanup_shared_service_instance (struct SharedServiceInstance *i)
(void) unlink (i->cfg_fn);
GNUNET_free (i->cfg_fn);
}
- GNUNET_free_non_null (i->unix_sock);
- GNUNET_free_non_null (i->port_str);
+ GNUNET_free (i->unix_sock);
+ GNUNET_free (i->port_str);
GNUNET_break (NULL == i->proc);
GNUNET_break (0 == i->n_refs);
GNUNET_free (i);
@@ -551,17 +551,17 @@ GNUNET_TESTING_system_destroy (struct GNUNET_TESTING_System *system,
stop_shared_service_instance (i);
cleanup_shared_service_instance (i);
}
- GNUNET_free_non_null (ss->instances);
+ GNUNET_free (ss->instances);
GNUNET_CONFIGURATION_destroy (ss->cfg);
GNUNET_free (ss->sname);
GNUNET_free (ss);
}
- GNUNET_free_non_null (system->shared_services);
+ GNUNET_free (system->shared_services);
if (GNUNET_YES == remove_paths)
GNUNET_DISK_directory_remove (system->tmppath);
GNUNET_free (system->tmppath);
- GNUNET_free_non_null (system->trusted_ip);
- GNUNET_free_non_null (system->hostname);
+ GNUNET_free (system->trusted_ip);
+ GNUNET_free (system->hostname);
GNUNET_free (system);
}
@@ -957,7 +957,7 @@ update_config_sections (void *cls, const char *section)
}
GNUNET_free (ikeys);
}
- GNUNET_free_non_null (val);
+ GNUNET_free (val);
ACCEPT_FROM_key = "ACCEPT_FROM";
if ((NULL != uc->system->trusted_ip) &&
(NULL != strstr (uc->system->trusted_ip, ":"))) /* IPv6 in use */
@@ -1120,7 +1120,7 @@ GNUNET_TESTING_configuration_create_ (struct GNUNET_TESTING_System *system,
*nports = uc.nports;
}
else
- GNUNET_free_non_null (uc.ports);
+ GNUNET_free (uc.ports);
return uc.status;
}
@@ -1316,8 +1316,8 @@ GNUNET_TESTING_peer_configure (struct GNUNET_TESTING_System *system,
return peer;
err_ret:
- GNUNET_free_non_null (ss_instances);
- GNUNET_free_non_null (ports);
+ GNUNET_free (ss_instances);
+ GNUNET_free (ports);
GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "%s", emsg_);
if (NULL != emsg)
*emsg = emsg_;
@@ -1566,8 +1566,8 @@ GNUNET_TESTING_peer_destroy (struct GNUNET_TESTING_Peer *peer)
GNUNET_CONFIGURATION_destroy (peer->cfg);
GNUNET_free (peer->main_binary);
GNUNET_free (peer->args);
- GNUNET_free_non_null (peer->id);
- GNUNET_free_non_null (peer->ss_instances);
+ GNUNET_free (peer->id);
+ GNUNET_free (peer->ss_instances);
if (NULL != peer->ports)
{
for (cnt = 0; cnt < peer->nports; cnt++)