diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ats/perf_ats_mlp.c | 2 | ||||
-rw-r--r-- | src/ats/test_ats_mlp.c | 2 | ||||
-rw-r--r-- | src/ats/test_ats_mlp_averaging.c | 2 | ||||
-rw-r--r-- | src/integration-tests/connection_watchdog.c | 2 | ||||
-rw-r--r-- | src/namestore/gnunet-service-namestore.c | 2 | ||||
-rw-r--r-- | src/namestore/namestore_api.c | 2 | ||||
-rw-r--r-- | src/transport/plugin_transport_unix.c | 2 | ||||
-rw-r--r-- | src/util/service.c | 2 | ||||
-rw-r--r-- | src/util/test_service.c | 2 |
9 files changed, 9 insertions, 9 deletions
diff --git a/src/ats/perf_ats_mlp.c b/src/ats/perf_ats_mlp.c index 914534db0..306ef422d 100644 --- a/src/ats/perf_ats_mlp.c +++ b/src/ats/perf_ats_mlp.c | |||
@@ -258,7 +258,7 @@ check (void *cls, char *const *args, const char *cfgfile, | |||
258 | 258 | ||
259 | /* Setting address */ | 259 | /* Setting address */ |
260 | a[ca].peer = p[c].id; | 260 | a[ca].peer = p[c].id; |
261 | a[ca].plugin = strdup("test"); | 261 | a[ca].plugin = GNUNET_strdup("test"); |
262 | a[ca].atsp_network_type = GNUNET_ATS_NET_LOOPBACK; | 262 | a[ca].atsp_network_type = GNUNET_ATS_NET_LOOPBACK; |
263 | 263 | ||
264 | a[ca].ats = GNUNET_malloc (DEF_ATS_VALUES * sizeof (struct GNUNET_ATS_Information)); | 264 | a[ca].ats = GNUNET_malloc (DEF_ATS_VALUES * sizeof (struct GNUNET_ATS_Information)); |
diff --git a/src/ats/test_ats_mlp.c b/src/ats/test_ats_mlp.c index 4e8a68591..27e5360b3 100644 --- a/src/ats/test_ats_mlp.c +++ b/src/ats/test_ats_mlp.c | |||
@@ -52,7 +52,7 @@ create_address (struct ATS_Address *addr, char * plugin, int ats_count, struct G | |||
52 | addr->mlp_information = NULL; | 52 | addr->mlp_information = NULL; |
53 | addr->next = NULL; | 53 | addr->next = NULL; |
54 | addr->prev = NULL; | 54 | addr->prev = NULL; |
55 | addr->plugin = strdup (plugin); | 55 | addr->plugin = GNUNET_strdup (plugin); |
56 | addr->ats_count = ats_count; | 56 | addr->ats_count = ats_count; |
57 | addr->ats = ats; | 57 | addr->ats = ats; |
58 | } | 58 | } |
diff --git a/src/ats/test_ats_mlp_averaging.c b/src/ats/test_ats_mlp_averaging.c index d9a46f68d..5eea44631 100644 --- a/src/ats/test_ats_mlp_averaging.c +++ b/src/ats/test_ats_mlp_averaging.c | |||
@@ -52,7 +52,7 @@ create_address (struct ATS_Address *addr, char * plugin, int ats_count, struct G | |||
52 | addr->mlp_information = NULL; | 52 | addr->mlp_information = NULL; |
53 | addr->next = NULL; | 53 | addr->next = NULL; |
54 | addr->prev = NULL; | 54 | addr->prev = NULL; |
55 | addr->plugin = strdup (plugin); | 55 | addr->plugin = GNUNET_strdup (plugin); |
56 | addr->ats_count = ats_count; | 56 | addr->ats_count = ats_count; |
57 | addr->ats = ats; | 57 | addr->ats = ats; |
58 | } | 58 | } |
diff --git a/src/integration-tests/connection_watchdog.c b/src/integration-tests/connection_watchdog.c index 942059c91..242322bb6 100644 --- a/src/integration-tests/connection_watchdog.c +++ b/src/integration-tests/connection_watchdog.c | |||
@@ -983,7 +983,7 @@ init () | |||
983 | 983 | ||
984 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, _("Transport plugin: `%s' port %llu\n"), pos, port); | 984 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, _("Transport plugin: `%s' port %llu\n"), pos, port); |
985 | cur = GNUNET_malloc(sizeof (struct TransportPlugin)); | 985 | cur = GNUNET_malloc(sizeof (struct TransportPlugin)); |
986 | cur->short_name = strdup (pos); | 986 | cur->short_name = GNUNET_strdup (pos); |
987 | cur->port = port; | 987 | cur->port = port; |
988 | if (0 == strcmp("tcp", pos)) | 988 | if (0 == strcmp("tcp", pos)) |
989 | { | 989 | { |
diff --git a/src/namestore/gnunet-service-namestore.c b/src/namestore/gnunet-service-namestore.c index 7facd5e39..7fd8d7dc4 100644 --- a/src/namestore/gnunet-service-namestore.c +++ b/src/namestore/gnunet-service-namestore.c | |||
@@ -1529,7 +1529,7 @@ void zone_iteraterate_proc (void *cls, | |||
1529 | rd_filtered = NULL; | 1529 | rd_filtered = NULL; |
1530 | } | 1530 | } |
1531 | proc->rd = rd_filtered; | 1531 | proc->rd = rd_filtered; |
1532 | proc->name = strdup(name); | 1532 | proc->name = GNUNET_strdup(name); |
1533 | memcpy (&proc->zone_key, zone_key, sizeof (proc->zone_key)); | 1533 | memcpy (&proc->zone_key, zone_key, sizeof (proc->zone_key)); |
1534 | 1534 | ||
1535 | /* Signature */ | 1535 | /* Signature */ |
diff --git a/src/namestore/namestore_api.c b/src/namestore/namestore_api.c index b965ebefb..8c55e13a4 100644 --- a/src/namestore/namestore_api.c +++ b/src/namestore/namestore_api.c | |||
@@ -1428,7 +1428,7 @@ GNUNET_NAMESTORE_zone_to_name (struct GNUNET_NAMESTORE_Handle *h, | |||
1428 | msg->zone = *zone; | 1428 | msg->zone = *zone; |
1429 | msg->value_zone = *value_zone; | 1429 | msg->value_zone = *value_zone; |
1430 | 1430 | ||
1431 | char * z_tmp = strdup (GNUNET_short_h2s (zone)); | 1431 | char * z_tmp = GNUNET_strdup (GNUNET_short_h2s (zone)); |
1432 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Sending `%s' message for zone `%s' in zone `%s'\n", | 1432 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Sending `%s' message for zone `%s' in zone `%s'\n", |
1433 | "NAMESTORE_ZONE_TO_NAME", | 1433 | "NAMESTORE_ZONE_TO_NAME", |
1434 | z_tmp, | 1434 | z_tmp, |
diff --git a/src/transport/plugin_transport_unix.c b/src/transport/plugin_transport_unix.c index 04c8a45be..ecfe15783 100644 --- a/src/transport/plugin_transport_unix.c +++ b/src/transport/plugin_transport_unix.c | |||
@@ -1003,7 +1003,7 @@ unix_string_to_address (void *cls, const char *addr, uint16_t addrlen, | |||
1003 | return GNUNET_SYSERR; | 1003 | return GNUNET_SYSERR; |
1004 | } | 1004 | } |
1005 | 1005 | ||
1006 | (*buf) = strdup (addr); | 1006 | (*buf) = GNUNET_strdup (addr); |
1007 | (*added) = strlen (addr) + 1; | 1007 | (*added) = strlen (addr) + 1; |
1008 | return GNUNET_OK; | 1008 | return GNUNET_OK; |
1009 | } | 1009 | } |
diff --git a/src/util/service.c b/src/util/service.c index 3cddae69e..fb9830419 100644 --- a/src/util/service.c +++ b/src/util/service.c | |||
@@ -1179,7 +1179,7 @@ receive_sockets_from_parent (struct GNUNET_SERVICE_Context *sctx) | |||
1179 | */ | 1179 | */ |
1180 | lsocks_pipe = (HANDLE) strtoul (env_buf, NULL, 10); | 1180 | lsocks_pipe = (HANDLE) strtoul (env_buf, NULL, 10); |
1181 | if ( (0 == lsocks_pipe) || (INVALID_HANDLE_VALUE == lsocks_pipe)) | 1181 | if ( (0 == lsocks_pipe) || (INVALID_HANDLE_VALUE == lsocks_pipe)) |
1182 | return GNUNET_NO | 1182 | return GNUNET_NO; |
1183 | fail = 1; | 1183 | fail = 1; |
1184 | do | 1184 | do |
1185 | { | 1185 | { |
diff --git a/src/util/test_service.c b/src/util/test_service.c index 9565e0931..078be7a41 100644 --- a/src/util/test_service.c +++ b/src/util/test_service.c | |||
@@ -61,7 +61,7 @@ static void | |||
61 | ready (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 61 | ready (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) |
62 | { | 62 | { |
63 | const struct GNUNET_CONFIGURATION_Handle *cfg = cls; | 63 | const struct GNUNET_CONFIGURATION_Handle *cfg = cls; |
64 | struct GNUNET_CLIENT_Connection *client; | 64 | |
65 | 65 | ||
66 | GNUNET_assert (0 != (tc->reason & GNUNET_SCHEDULER_REASON_PREREQ_DONE)); | 66 | GNUNET_assert (0 != (tc->reason & GNUNET_SCHEDULER_REASON_PREREQ_DONE)); |
67 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Service confirmed running\n"); | 67 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Service confirmed running\n"); |