diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/gns/gnunet-dns2gns.c | 2 | ||||
-rw-r--r-- | src/testbed/testbed_api_hosts.c | 2 | ||||
-rw-r--r-- | src/testing/testing.c | 8 | ||||
-rw-r--r-- | src/transport/test_plugin_transport.c | 2 | ||||
-rw-r--r-- | src/util/helper.c | 2 | ||||
-rw-r--r-- | src/util/test_plugin.c | 2 |
6 files changed, 9 insertions, 9 deletions
diff --git a/src/gns/gnunet-dns2gns.c b/src/gns/gnunet-dns2gns.c index 0e347ca7e..35f0a016d 100644 --- a/src/gns/gnunet-dns2gns.c +++ b/src/gns/gnunet-dns2gns.c | |||
@@ -357,7 +357,7 @@ result_processor (void *cls, | |||
357 | break; | 357 | break; |
358 | case GNUNET_DNSPARSER_TYPE_CNAME: | 358 | case GNUNET_DNSPARSER_TYPE_CNAME: |
359 | rec.name = GNUNET_strdup (packet->queries[0].name); | 359 | rec.name = GNUNET_strdup (packet->queries[0].name); |
360 | rec.data.hostname = strdup (rd[i].data); | 360 | rec.data.hostname = GNUNET_strdup (rd[i].data); |
361 | rec.dns_traffic_class = GNUNET_TUN_DNS_CLASS_INTERNET; | 361 | rec.dns_traffic_class = GNUNET_TUN_DNS_CLASS_INTERNET; |
362 | rec.type = GNUNET_DNSPARSER_TYPE_CNAME; | 362 | rec.type = GNUNET_DNSPARSER_TYPE_CNAME; |
363 | memcpy (rec.data.hostname, | 363 | memcpy (rec.data.hostname, |
diff --git a/src/testbed/testbed_api_hosts.c b/src/testbed/testbed_api_hosts.c index 292dafadf..d64a9554f 100644 --- a/src/testbed/testbed_api_hosts.c +++ b/src/testbed/testbed_api_hosts.c | |||
@@ -765,7 +765,7 @@ copy_argv (const char *const *argv) | |||
765 | for (argp = 0; NULL != argv[argp]; argp++) ; | 765 | for (argp = 0; NULL != argv[argp]; argp++) ; |
766 | argv_dup = GNUNET_malloc (sizeof (char *) * (argp + 1)); | 766 | argv_dup = GNUNET_malloc (sizeof (char *) * (argp + 1)); |
767 | for (argp = 0; NULL != argv[argp]; argp++) | 767 | for (argp = 0; NULL != argv[argp]; argp++) |
768 | argv_dup[argp] = strdup (argv[argp]); | 768 | argv_dup[argp] = GNUNET_strdup (argv[argp]); |
769 | return argv_dup; | 769 | return argv_dup; |
770 | } | 770 | } |
771 | 771 | ||
diff --git a/src/testing/testing.c b/src/testing/testing.c index a4fdd38ca..88ee86a4c 100644 --- a/src/testing/testing.c +++ b/src/testing/testing.c | |||
@@ -1253,11 +1253,11 @@ GNUNET_TESTING_peer_configure (struct GNUNET_TESTING_System *system, | |||
1253 | { | 1253 | { |
1254 | /* No prefix */ | 1254 | /* No prefix */ |
1255 | GNUNET_asprintf(&peer->main_binary, "%s", libexec_binary); | 1255 | GNUNET_asprintf(&peer->main_binary, "%s", libexec_binary); |
1256 | peer->args = strdup (""); | 1256 | peer->args = GNUNET_strdup (""); |
1257 | } | 1257 | } |
1258 | else | 1258 | else |
1259 | { | 1259 | { |
1260 | peer->args = strdup (libexec_binary); | 1260 | peer->args = GNUNET_strdup (libexec_binary); |
1261 | } | 1261 | } |
1262 | peer->system = system; | 1262 | peer->system = system; |
1263 | peer->key_number = key_number; | 1263 | peer->key_number = key_number; |
@@ -1724,10 +1724,10 @@ GNUNET_TESTING_service_run (const char *testdir, | |||
1724 | { | 1724 | { |
1725 | /* No prefix */ | 1725 | /* No prefix */ |
1726 | GNUNET_asprintf(&peer->main_binary, "%s", libexec_binary); | 1726 | GNUNET_asprintf(&peer->main_binary, "%s", libexec_binary); |
1727 | peer->args = strdup (""); | 1727 | peer->args = GNUNET_strdup (""); |
1728 | } | 1728 | } |
1729 | else | 1729 | else |
1730 | peer->args = strdup (libexec_binary); | 1730 | peer->args = GNUNET_strdup (libexec_binary); |
1731 | 1731 | ||
1732 | GNUNET_free (libexec_binary); | 1732 | GNUNET_free (libexec_binary); |
1733 | GNUNET_free (binary); | 1733 | GNUNET_free (binary); |
diff --git a/src/transport/test_plugin_transport.c b/src/transport/test_plugin_transport.c index 2185478e7..e2d178ad0 100644 --- a/src/transport/test_plugin_transport.c +++ b/src/transport/test_plugin_transport.c | |||
@@ -348,7 +348,7 @@ env_notify_address (void *cls, | |||
348 | GNUNET_CONTAINER_DLL_insert(head, tail, w); | 348 | GNUNET_CONTAINER_DLL_insert(head, tail, w); |
349 | got_reply = GNUNET_NO; | 349 | got_reply = GNUNET_NO; |
350 | GNUNET_log(GNUNET_ERROR_TYPE_INFO, "Testing: address_to_string \n"); | 350 | GNUNET_log(GNUNET_ERROR_TYPE_INFO, "Testing: address_to_string \n"); |
351 | w->addrstring = strdup ( | 351 | w->addrstring = GNUNET_strdup ( |
352 | api->address_to_string (api, w->address->address, | 352 | api->address_to_string (api, w->address->address, |
353 | w->address->address_length)); | 353 | w->address->address_length)); |
354 | if (NULL == w->addrstring) | 354 | if (NULL == w->addrstring) |
diff --git a/src/util/helper.c b/src/util/helper.c index 6dd417a91..3ff72c329 100644 --- a/src/util/helper.c +++ b/src/util/helper.c | |||
@@ -498,7 +498,7 @@ GNUNET_HELPER_start (int with_control_pipe, | |||
498 | if (NULL != strstr (binary_name, "gnunet")) | 498 | if (NULL != strstr (binary_name, "gnunet")) |
499 | h->binary_name = GNUNET_OS_get_libexec_binary_path (binary_name); | 499 | h->binary_name = GNUNET_OS_get_libexec_binary_path (binary_name); |
500 | else | 500 | else |
501 | h->binary_name = strdup (binary_name); | 501 | h->binary_name = GNUNET_strdup (binary_name); |
502 | for (c = 0; NULL != binary_argv[c]; c++); | 502 | for (c = 0; NULL != binary_argv[c]; c++); |
503 | h->binary_argv = GNUNET_malloc (sizeof (char *) * (c + 1)); | 503 | h->binary_argv = GNUNET_malloc (sizeof (char *) * (c + 1)); |
504 | for (c = 0; NULL != binary_argv[c]; c++) | 504 | for (c = 0; NULL != binary_argv[c]; c++) |
diff --git a/src/util/test_plugin.c b/src/util/test_plugin.c index 135447da8..02aa6c038 100644 --- a/src/util/test_plugin.c +++ b/src/util/test_plugin.c | |||
@@ -35,7 +35,7 @@ test_cb (void *cls, const char *libname, void *lib_ret) | |||
35 | ret = GNUNET_PLUGIN_unload (libname, "out"); | 35 | ret = GNUNET_PLUGIN_unload (libname, "out"); |
36 | GNUNET_assert (NULL != ret); | 36 | GNUNET_assert (NULL != ret); |
37 | GNUNET_assert (0 == strcmp (ret, "World")); | 37 | GNUNET_assert (0 == strcmp (ret, "World")); |
38 | GNUNET_free (ret); | 38 | free (ret); |
39 | } | 39 | } |
40 | 40 | ||
41 | 41 | ||