removing "unused variable" error
[oweals/gnunet.git] / src / datastore / test_datastore_api_management.c
index d17d8fbc86be074f94cfc402bdad46c2276bc4fb..8d71fed9078700450d64e845662d59d59c017694 100644 (file)
@@ -388,13 +388,17 @@ main (int argc, char *argv[])
 {
   int ret;
   
-  const char *pos;
+  char *pos;
   char dir_name[128];
 
   /* determine name of plugin to use */
   plugin_name = argv[0];
   while (NULL != (pos = strstr(plugin_name, "_")))
     plugin_name = pos+1;
+  if (NULL != (pos = strstr(plugin_name, ".")))
+    pos[0] = 0;
+  else
+    pos = (char *) plugin_name;
 
   GNUNET_snprintf (dir_name,
                   sizeof (dir_name),
@@ -409,6 +413,8 @@ main (int argc, char *argv[])
 #endif
                     NULL);
   ret = check ();
+  if (pos != plugin_name)
+    pos[0] = '.';
   GNUNET_DISK_directory_remove (dir_name);
   return ret;
 }