Fix perf_crypto_rsa.c after various changes
[oweals/gnunet.git] / src / util / os_installation.c
index 38cf7b539e3087434b521369aabc80b9ca8382ef..a0e8647a1211bce37fe0fe4e7a7487cfbe27a73c 100644 (file)
@@ -58,6 +58,11 @@ static const struct GNUNET_OS_ProjectData default_pd = {
   .project_dirname = "gnunet",
   .binary_name = "gnunet-arm",
   .env_varname = "GNUNET_PREFIX",
+  .base_config_varname = "GNUNET_BASE_CONFIG",
+  .bug_email = "gnunet-developers@gnu.org",
+  .homepage = "http://www.gnu.org/s/gnunet/",
+  .config_file = "gnunet.conf",
+  .user_config_file = "~/.config/gnunet.conf",
 };
 
 /**
@@ -76,6 +81,16 @@ GNUNET_OS_project_data_default (void)
 }
 
 
+/**
+ * @return current project data.
+ */
+const struct GNUNET_OS_ProjectData *
+GNUNET_OS_project_data_get ()
+{
+  return current_pd;
+}
+
+
 /**
  * Setup OS subsystem with project data.
  *
@@ -89,7 +104,6 @@ GNUNET_OS_init (const struct GNUNET_OS_ProjectData *pd)
 }
 
 
-
 #if LINUX
 /**
  * Try to determine path by reading /proc/PID/exe
@@ -740,6 +754,7 @@ GNUNET_OS_installation_get_path (enum GNUNET_OS_InstallationPathKind dirkind)
                    "%s%s",
                    execpath,
                    dirname);
+  GNUNET_free (dirname);
   GNUNET_free (execpath);
   return tmp;
 }