diff options
Diffstat (limited to 'src/datastore/perf_datastore_api.c')
-rw-r--r-- | src/datastore/perf_datastore_api.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/datastore/perf_datastore_api.c b/src/datastore/perf_datastore_api.c index e236b6235..fa2ee52dc 100644 --- a/src/datastore/perf_datastore_api.c +++ b/src/datastore/perf_datastore_api.c | |||
@@ -322,17 +322,9 @@ run (void *cls, | |||
322 | int | 322 | int |
323 | main (int argc, char *argv[]) | 323 | main (int argc, char *argv[]) |
324 | { | 324 | { |
325 | char *pos; | ||
326 | char cfg_name[128]; | 325 | char cfg_name[128]; |
327 | 326 | ||
328 | /* determine name of plugin to use */ | 327 | plugin_name = GNUNET_TESTING_get_testname_from_underscoare (argv[0]); |
329 | plugin_name = argv[0]; | ||
330 | while (NULL != (pos = strstr (plugin_name, "_"))) | ||
331 | plugin_name = pos + 1; | ||
332 | if (NULL != (pos = strstr (plugin_name, "."))) | ||
333 | pos[0] = '\0'; | ||
334 | else | ||
335 | pos = (char *) plugin_name; | ||
336 | GNUNET_snprintf (cfg_name, sizeof (cfg_name), | 328 | GNUNET_snprintf (cfg_name, sizeof (cfg_name), |
337 | "test_datastore_api_data_%s.conf", plugin_name); | 329 | "test_datastore_api_data_%s.conf", plugin_name); |
338 | if (0 != | 330 | if (0 != |