no need to dup cfg
authorChristian Grothoff <christian@grothoff.org>
Tue, 22 May 2018 21:37:15 +0000 (23:37 +0200)
committerChristian Grothoff <christian@grothoff.org>
Tue, 22 May 2018 21:37:15 +0000 (23:37 +0200)
src/dht/gnunet_dht_profiler.c

index 403deb38a299e386c70583f6dde9b92c26331e8b..5341e7d61c44a8b30f0a3fec62b72edae9bc7fb3 100644 (file)
@@ -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,