aboutsummaryrefslogtreecommitdiff
path: root/src/dv
diff options
context:
space:
mode:
Diffstat (limited to 'src/dv')
-rw-r--r--src/dv/test_transport_api_dv.c16
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