diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-12-30 22:43:52 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-12-30 22:43:52 +0000 |
commit | f5a017ed63ee50feeefc6f0c2b28549aeca92ded (patch) | |
tree | efb619e68756960821ff3ad667a1452db9add7f7 /src/testing/test_testing_topology.c | |
parent | 416c2f5a713b93ba689a8cd1e038682a53e6bc17 (diff) | |
download | gnunet-f5a017ed63ee50feeefc6f0c2b28549aeca92ded.tar.gz gnunet-f5a017ed63ee50feeefc6f0c2b28549aeca92ded.zip |
-LRN: use FOPEN/CLOSE instead of fopen/close - #2051
Diffstat (limited to 'src/testing/test_testing_topology.c')
-rw-r--r-- | src/testing/test_testing_topology.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/testing/test_testing_topology.c b/src/testing/test_testing_topology.c index 17f3be89a..7404aa73e 100644 --- a/src/testing/test_testing_topology.c +++ b/src/testing/test_testing_topology.c | |||
@@ -339,7 +339,7 @@ topology_cb (void *cls, const struct GNUNET_PeerIdentity *first, | |||
339 | if (outfile != NULL) | 339 | if (outfile != NULL) |
340 | { | 340 | { |
341 | FPRINTF (outfile, "%s", "}\n"); | 341 | FPRINTF (outfile, "%s", "}\n"); |
342 | fclose (outfile); | 342 | FCLOSE (outfile); |
343 | #if DO_STATS | 343 | #if DO_STATS |
344 | GNUNET_TESTING_get_statistics (pg, &stats_finished, &stats_print, NULL); | 344 | GNUNET_TESTING_get_statistics (pg, &stats_finished, &stats_print, NULL); |
345 | #endif | 345 | #endif |
@@ -398,7 +398,7 @@ process_mtype (void *cls, const struct GNUNET_PeerIdentity *peer, | |||
398 | #endif | 398 | #endif |
399 | GNUNET_SCHEDULER_cancel (die_task); | 399 | GNUNET_SCHEDULER_cancel (die_task); |
400 | GNUNET_asprintf (&dotOutFileNameFinished, "%s.dot", "final_topology"); | 400 | GNUNET_asprintf (&dotOutFileNameFinished, "%s.dot", "final_topology"); |
401 | dotOutFileFinished = fopen (dotOutFileNameFinished, "w"); | 401 | dotOutFileFinished = FOPEN (dotOutFileNameFinished, "w"); |
402 | GNUNET_free (dotOutFileNameFinished); | 402 | GNUNET_free (dotOutFileNameFinished); |
403 | if (dotOutFileFinished != NULL) | 403 | if (dotOutFileFinished != NULL) |
404 | { | 404 | { |
@@ -465,7 +465,7 @@ end_badly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
465 | if (dotOutFile != NULL) | 465 | if (dotOutFile != NULL) |
466 | { | 466 | { |
467 | FPRINTF (dotOutFile, "%s", "}"); | 467 | FPRINTF (dotOutFile, "%s", "}"); |
468 | fclose (dotOutFile); | 468 | FCLOSE (dotOutFile); |
469 | } | 469 | } |
470 | } | 470 | } |
471 | 471 | ||
@@ -1006,7 +1006,7 @@ run (void *cls, char *const *args, const char *cfgfile, | |||
1006 | 1006 | ||
1007 | ok = 1; | 1007 | ok = 1; |
1008 | 1008 | ||
1009 | dotOutFile = fopen (dotOutFileName, "w"); | 1009 | dotOutFile = FOPEN (dotOutFileName, "w"); |
1010 | if (dotOutFile != NULL) | 1010 | if (dotOutFile != NULL) |
1011 | { | 1011 | { |
1012 | FPRINTF (dotOutFile, "%s", "strict graph G {\n"); | 1012 | FPRINTF (dotOutFile, "%s", "strict graph G {\n"); |