changes
authorNathan S. Evans <evans@in.tum.de>
Tue, 19 Jul 2011 13:02:42 +0000 (13:02 +0000)
committerNathan S. Evans <evans@in.tum.de>
Tue, 19 Jul 2011 13:02:42 +0000 (13:02 +0000)
src/testing/testing_peergroup.c

index e6bb3d63b20855f8bf3bd667de936d8be5b53c83..f9eb6bfcd31a37e1863da66400c4fcadc411ebb4 100644 (file)
@@ -645,7 +645,7 @@ write_topology_cb (void *cls,
  */
 void
 GNUNET_TESTING_peergroup_topology_to_file(struct GNUNET_TESTING_PeerGroup *pg,
-                                          char *output_filename,
+                                          const char *output_filename,
                                           GNUNET_TESTING_NotifyCompletion notify_cb,
                                           void *notify_cb_cls)
 {
@@ -654,7 +654,7 @@ GNUNET_TESTING_peergroup_topology_to_file(struct GNUNET_TESTING_PeerGroup *pg,
   char *temp_str;
   topo_ctx = GNUNET_malloc(sizeof(struct TopologyOutputContext));
 
-  topo_ctx->file = GNUNET_DISK_file_open (temp_str, GNUNET_DISK_OPEN_READWRITE
+  topo_ctx->file = GNUNET_DISK_file_open (output_filename, GNUNET_DISK_OPEN_READWRITE
                                                               | GNUNET_DISK_OPEN_CREATE,
                                                               GNUNET_DISK_PERM_USER_READ |
                                                               GNUNET_DISK_PERM_USER_WRITE);