diff options
Diffstat (limited to 'src/statistics')
-rw-r--r-- | src/statistics/gnunet-service-statistics.c | 5 | ||||
-rw-r--r-- | src/statistics/gnunet-statistics.c | 2 | ||||
-rw-r--r-- | src/statistics/statistics_api.c | 4 | ||||
-rw-r--r-- | src/statistics/test_statistics_api.c | 8 | ||||
-rw-r--r-- | src/statistics/test_statistics_api_loop.c | 3 | ||||
-rw-r--r-- | src/statistics/test_statistics_api_watch.c | 3 | ||||
-rw-r--r-- | src/statistics/test_statistics_api_watch_zero_value.c | 3 |
7 files changed, 16 insertions, 12 deletions
diff --git a/src/statistics/gnunet-service-statistics.c b/src/statistics/gnunet-service-statistics.c index d40f74aaf..31c367e91 100644 --- a/src/statistics/gnunet-service-statistics.c +++ b/src/statistics/gnunet-service-statistics.c | |||
@@ -290,7 +290,8 @@ save () | |||
290 | msg->flags = | 290 | msg->flags = |
291 | htonl (pos->persistent ? GNUNET_STATISTICS_SETFLAG_PERSISTENT : 0); | 291 | htonl (pos->persistent ? GNUNET_STATISTICS_SETFLAG_PERSISTENT : 0); |
292 | msg->value = GNUNET_htonll (pos->value); | 292 | msg->value = GNUNET_htonll (pos->value); |
293 | if (GNUNET_OK != GNUNET_BIO_write (wh, "statistics-save-msg", msg, size)) | 293 | if (GNUNET_OK != GNUNET_BIO_write (wh, "statistics-save-msg", msg, |
294 | size)) | ||
294 | { | 295 | { |
295 | GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_WARNING, "write", fn); | 296 | GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_WARNING, "write", fn); |
296 | if (GNUNET_OK != GNUNET_BIO_write_close (wh, NULL)) | 297 | if (GNUNET_OK != GNUNET_BIO_write_close (wh, NULL)) |
@@ -319,7 +320,7 @@ save () | |||
319 | total, | 320 | total, |
320 | fn); | 321 | fn); |
321 | } | 322 | } |
322 | GNUNET_free_non_null (fn); | 323 | GNUNET_free (fn); |
323 | } | 324 | } |
324 | 325 | ||
325 | 326 | ||
diff --git a/src/statistics/gnunet-statistics.c b/src/statistics/gnunet-statistics.c index 63afde877..b9aedb4e7 100644 --- a/src/statistics/gnunet-statistics.c +++ b/src/statistics/gnunet-statistics.c | |||
@@ -880,7 +880,7 @@ main (int argc, char *const *argv) | |||
880 | GNUNET_array_grow (nodes, | 880 | GNUNET_array_grow (nodes, |
881 | num_nodes, | 881 | num_nodes, |
882 | 0); | 882 | 0); |
883 | GNUNET_free_non_null (remote_host); | 883 | GNUNET_free (remote_host); |
884 | GNUNET_free_nz ((void *) argv); | 884 | GNUNET_free_nz ((void *) argv); |
885 | return ret; | 885 | return ret; |
886 | } | 886 | } |
diff --git a/src/statistics/statistics_api.c b/src/statistics/statistics_api.c index 869d51544..12c09b7d2 100644 --- a/src/statistics/statistics_api.c +++ b/src/statistics/statistics_api.c | |||
@@ -374,8 +374,8 @@ schedule_watch_request (struct GNUNET_STATISTICS_Handle *h, | |||
374 | static void | 374 | static void |
375 | free_action_item (struct GNUNET_STATISTICS_GetHandle *gh) | 375 | free_action_item (struct GNUNET_STATISTICS_GetHandle *gh) |
376 | { | 376 | { |
377 | GNUNET_free_non_null (gh->subsystem); | 377 | GNUNET_free (gh->subsystem); |
378 | GNUNET_free_non_null (gh->name); | 378 | GNUNET_free (gh->name); |
379 | GNUNET_free (gh); | 379 | GNUNET_free (gh); |
380 | } | 380 | } |
381 | 381 | ||
diff --git a/src/statistics/test_statistics_api.c b/src/statistics/test_statistics_api.c index fcdeccad6..c9e568870 100644 --- a/src/statistics/test_statistics_api.c +++ b/src/statistics/test_statistics_api.c | |||
@@ -197,8 +197,8 @@ main (int argc, char *argv_ign[]) | |||
197 | NULL); | 197 | NULL); |
198 | binary = GNUNET_OS_get_libexec_binary_path ("gnunet-service-statistics"); | 198 | binary = GNUNET_OS_get_libexec_binary_path ("gnunet-service-statistics"); |
199 | proc = | 199 | proc = |
200 | GNUNET_OS_start_process (GNUNET_YES, | 200 | GNUNET_OS_start_process (GNUNET_OS_INHERIT_STD_OUT_AND_ERR |
201 | GNUNET_OS_INHERIT_STD_OUT_AND_ERR, | 201 | | GNUNET_OS_USE_PIPE_CONTROL, |
202 | NULL, NULL, NULL, | 202 | NULL, NULL, NULL, |
203 | binary, | 203 | binary, |
204 | "gnunet-service-statistics", | 204 | "gnunet-service-statistics", |
@@ -225,8 +225,8 @@ main (int argc, char *argv_ign[]) | |||
225 | ok = 1; | 225 | ok = 1; |
226 | /* restart to check persistence! */ | 226 | /* restart to check persistence! */ |
227 | proc = | 227 | proc = |
228 | GNUNET_OS_start_process (GNUNET_YES, | 228 | GNUNET_OS_start_process (GNUNET_OS_INHERIT_STD_OUT_AND_ERR |
229 | GNUNET_OS_INHERIT_STD_OUT_AND_ERR, | 229 | | GNUNET_OS_USE_PIPE_CONTROL, |
230 | NULL, NULL, NULL, | 230 | NULL, NULL, NULL, |
231 | binary, | 231 | binary, |
232 | "gnunet-service-statistics", | 232 | "gnunet-service-statistics", |
diff --git a/src/statistics/test_statistics_api_loop.c b/src/statistics/test_statistics_api_loop.c index 50507bdc4..ad273287d 100644 --- a/src/statistics/test_statistics_api_loop.c +++ b/src/statistics/test_statistics_api_loop.c | |||
@@ -98,7 +98,8 @@ main (int argc, char *argv_ign[]) | |||
98 | 98 | ||
99 | binary = GNUNET_OS_get_libexec_binary_path ("gnunet-service-statistics"); | 99 | binary = GNUNET_OS_get_libexec_binary_path ("gnunet-service-statistics"); |
100 | proc = | 100 | proc = |
101 | GNUNET_OS_start_process (GNUNET_YES, GNUNET_OS_INHERIT_STD_OUT_AND_ERR, | 101 | GNUNET_OS_start_process (GNUNET_OS_INHERIT_STD_OUT_AND_ERR |
102 | | GNUNET_OS_USE_PIPE_CONTROL, | ||
102 | NULL, NULL, NULL, | 103 | NULL, NULL, NULL, |
103 | binary, | 104 | binary, |
104 | "gnunet-service-statistics", | 105 | "gnunet-service-statistics", |
diff --git a/src/statistics/test_statistics_api_watch.c b/src/statistics/test_statistics_api_watch.c index 06e639599..2d9d08305 100644 --- a/src/statistics/test_statistics_api_watch.c +++ b/src/statistics/test_statistics_api_watch.c | |||
@@ -130,7 +130,8 @@ main (int argc, char *argv_ign[]) | |||
130 | 130 | ||
131 | binary = GNUNET_OS_get_libexec_binary_path ("gnunet-service-statistics"); | 131 | binary = GNUNET_OS_get_libexec_binary_path ("gnunet-service-statistics"); |
132 | proc = | 132 | proc = |
133 | GNUNET_OS_start_process (GNUNET_YES, GNUNET_OS_INHERIT_STD_OUT_AND_ERR, | 133 | GNUNET_OS_start_process (GNUNET_OS_INHERIT_STD_OUT_AND_ERR |
134 | | GNUNET_OS_USE_PIPE_CONTROL, | ||
134 | NULL, NULL, NULL, | 135 | NULL, NULL, NULL, |
135 | binary, | 136 | binary, |
136 | "gnunet-service-statistics", | 137 | "gnunet-service-statistics", |
diff --git a/src/statistics/test_statistics_api_watch_zero_value.c b/src/statistics/test_statistics_api_watch_zero_value.c index 80ca57c18..cb2694f8f 100644 --- a/src/statistics/test_statistics_api_watch_zero_value.c +++ b/src/statistics/test_statistics_api_watch_zero_value.c | |||
@@ -168,7 +168,8 @@ main (int argc, char *argv_ign[]) | |||
168 | 168 | ||
169 | binary = GNUNET_OS_get_libexec_binary_path ("gnunet-service-statistics"); | 169 | binary = GNUNET_OS_get_libexec_binary_path ("gnunet-service-statistics"); |
170 | proc = | 170 | proc = |
171 | GNUNET_OS_start_process (GNUNET_YES, GNUNET_OS_INHERIT_STD_OUT_AND_ERR, | 171 | GNUNET_OS_start_process (GNUNET_OS_INHERIT_STD_OUT_AND_ERR |
172 | | GNUNET_OS_USE_PIPE_CONTROL, | ||
172 | NULL, NULL, NULL, | 173 | NULL, NULL, NULL, |
173 | binary, | 174 | binary, |
174 | "gnunet-service-statistics", | 175 | "gnunet-service-statistics", |