aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-05-22 23:37:15 +0200
committerChristian Grothoff <christian@grothoff.org>2018-05-22 23:37:15 +0200
commit9af391e1545c33f592389ce0dd572b27da9b01ad (patch)
tree5113d67805e96fe0cc6dc66265bf5281bf445c33
parent9be8a466ac6627c30ffc827d459e02a67cdaf929 (diff)
no need to dup cfg
-rw-r--r--src/dht/gnunet_dht_profiler.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dht/gnunet_dht_profiler.c b/src/dht/gnunet_dht_profiler.c
index 403deb38a2..5341e7d61c 100644
--- a/src/dht/gnunet_dht_profiler.c
+++ b/src/dht/gnunet_dht_profiler.c
@@ -45,7 +45,7 @@ static unsigned int put_probability = 100;
/**
* Configuration
*/
-static struct GNUNET_CONFIGURATION_Handle *cfg;
+static const struct GNUNET_CONFIGURATION_Handle *cfg;
/**
* Name of the file with the hosts to run the test over
@@ -917,7 +917,7 @@ run (void *cls,
num_peers);
return;
}
- cfg = GNUNET_CONFIGURATION_dup (config);
+ cfg = config;
event_mask = 0;
GNUNET_TESTBED_run (hosts_file,
cfg,