From f5a017ed63ee50feeefc6f0c2b28549aeca92ded Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 30 Dec 2011 22:43:52 +0000 Subject: -LRN: use FOPEN/CLOSE instead of fopen/close - #2051 --- src/testing/test_testing_topology.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/testing/test_testing_topology.c') 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, if (outfile != NULL) { FPRINTF (outfile, "%s", "}\n"); - fclose (outfile); + FCLOSE (outfile); #if DO_STATS GNUNET_TESTING_get_statistics (pg, &stats_finished, &stats_print, NULL); #endif @@ -398,7 +398,7 @@ process_mtype (void *cls, const struct GNUNET_PeerIdentity *peer, #endif GNUNET_SCHEDULER_cancel (die_task); GNUNET_asprintf (&dotOutFileNameFinished, "%s.dot", "final_topology"); - dotOutFileFinished = fopen (dotOutFileNameFinished, "w"); + dotOutFileFinished = FOPEN (dotOutFileNameFinished, "w"); GNUNET_free (dotOutFileNameFinished); if (dotOutFileFinished != NULL) { @@ -465,7 +465,7 @@ end_badly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) if (dotOutFile != NULL) { FPRINTF (dotOutFile, "%s", "}"); - fclose (dotOutFile); + FCLOSE (dotOutFile); } } @@ -1006,7 +1006,7 @@ run (void *cls, char *const *args, const char *cfgfile, ok = 1; - dotOutFile = fopen (dotOutFileName, "w"); + dotOutFile = FOPEN (dotOutFileName, "w"); if (dotOutFile != NULL) { FPRINTF (dotOutFile, "%s", "strict graph G {\n"); -- cgit v1.2.3