diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-12-30 22:42:04 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-12-30 22:42:04 +0000 |
commit | 416c2f5a713b93ba689a8cd1e038682a53e6bc17 (patch) | |
tree | 987f51d9edfddc02afe1524df5e1156b920c71d4 /src/dv | |
parent | fceec98e767bce7ad2c24dde73cdcf8837e04013 (diff) | |
download | gnunet-416c2f5a713b93ba689a8cd1e038682a53e6bc17.tar.gz gnunet-416c2f5a713b93ba689a8cd1e038682a53e6bc17.zip |
-LRN: use FPRINTF -- #2051
Diffstat (limited to 'src/dv')
-rw-r--r-- | src/dv/test_transport_api_dv.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/dv/test_transport_api_dv.c b/src/dv/test_transport_api_dv.c index 2e4962964..435bb2a60 100644 --- a/src/dv/test_transport_api_dv.c +++ b/src/dv/test_transport_api_dv.c | |||
@@ -274,8 +274,8 @@ finish_testing (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
274 | #endif | 274 | #endif |
275 | if (dotOutFile != NULL) | 275 | if (dotOutFile != NULL) |
276 | { | 276 | { |
277 | fprintf (dotOutFile, "}"); | ||
278 | fclose (dotOutFile); | 277 | fclose (dotOutFile); |
278 | FPRINTF (dotOutFile, "%s", "}"); | ||
279 | } | 279 | } |
280 | 280 | ||
281 | ok = 0; | 281 | ok = 0; |
@@ -382,7 +382,7 @@ end_badly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
382 | 382 | ||
383 | if (dotOutFile != NULL) | 383 | if (dotOutFile != NULL) |
384 | { | 384 | { |
385 | fprintf (dotOutFile, "}"); | 385 | FPRINTF (dotOutFile, "%s", "}"); |
386 | fclose (dotOutFile); | 386 | fclose (dotOutFile); |
387 | } | 387 | } |
388 | } | 388 | } |
@@ -896,18 +896,18 @@ all_connect_handler (void *cls, const struct GNUNET_PeerIdentity *peer, | |||
896 | if (dotOutFile != NULL) | 896 | if (dotOutFile != NULL) |
897 | { | 897 | { |
898 | if (distance == 1) | 898 | if (distance == 1) |
899 | fprintf (dotOutFile, "\tn%s -- n%s;\n", d->shortname, second_shortname); | 899 | FPRINTF (dotOutFile, "\tn%s -- n%s;\n", d->shortname, second_shortname); |
900 | else if (distance == 2) | 900 | else if (distance == 2) |
901 | fprintf (dotOutFile, "\tn%s -- n%s [color=blue];\n", d->shortname, | 901 | FPRINTF (dotOutFile, "\tn%s -- n%s [color=blue];\n", d->shortname, |
902 | second_shortname); | 902 | second_shortname); |
903 | else if (distance == 3) | 903 | else if (distance == 3) |
904 | fprintf (dotOutFile, "\tn%s -- n%s [color=red];\n", d->shortname, | 904 | FPRINTF (dotOutFile, "\tn%s -- n%s [color=red];\n", d->shortname, |
905 | second_shortname); | 905 | second_shortname); |
906 | else if (distance == 4) | 906 | else if (distance == 4) |
907 | fprintf (dotOutFile, "\tn%s -- n%s [color=green];\n", d->shortname, | 907 | FPRINTF (dotOutFile, "\tn%s -- n%s [color=green];\n", d->shortname, |
908 | second_shortname); | 908 | second_shortname); |
909 | else | 909 | else |
910 | fprintf (dotOutFile, "\tn%s -- n%s [color=brown];\n", d->shortname, | 910 | FPRINTF (dotOutFile, "\tn%s -- n%s [color=brown];\n", d->shortname, |
911 | second_shortname); | 911 | second_shortname); |
912 | } | 912 | } |
913 | GNUNET_free (second_shortname); | 913 | GNUNET_free (second_shortname); |
@@ -1067,7 +1067,7 @@ run (void *cls, char *const *args, const char *cfgfile, | |||
1067 | dotOutFile = fopen (dotOutFileName, "w"); | 1067 | dotOutFile = fopen (dotOutFileName, "w"); |
1068 | if (dotOutFile != NULL) | 1068 | if (dotOutFile != NULL) |
1069 | { | 1069 | { |
1070 | fprintf (dotOutFile, "strict graph G {\n"); | 1070 | FPRINTF (dotOutFile, "%s", "strict graph G {\n"); |
1071 | } | 1071 | } |
1072 | 1072 | ||
1073 | #if VERBOSE | 1073 | #if VERBOSE |