From c14ad3131ef0a3e690b44e5f4cd6f190027e3462 Mon Sep 17 00:00:00 2001 From: "Nathan S. Evans" Date: Tue, 19 Jul 2011 13:02:42 +0000 Subject: [PATCH] changes --- src/testing/testing_peergroup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/testing/testing_peergroup.c b/src/testing/testing_peergroup.c index e6bb3d63b..f9eb6bfcd 100644 --- a/src/testing/testing_peergroup.c +++ b/src/testing/testing_peergroup.c @@ -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); -- 2.25.1