]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
path-lookup: stop exporting two functions
authorLennart Poettering <lennart@poettering.net>
Fri, 26 Feb 2016 17:35:46 +0000 (18:35 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 12 Apr 2016 11:43:31 +0000 (13:43 +0200)
user_runtime_dir() and user_config_home() are not used externally anymore,
hence let's not export them anymore.

src/shared/path-lookup.c
src/shared/path-lookup.h

index eeabdd1ecd69d800beba18833c4286905621d1c5..22357e63925cab55267f01ed86de2f047832d351 100644 (file)
@@ -34,7 +34,7 @@
 #include "strv.h"
 #include "util.h"
 
-int user_config_home(char **config_home) {
+static int user_config_home(char **config_home) {
         const char *e;
         char *r;
 
@@ -63,7 +63,7 @@ int user_config_home(char **config_home) {
         return 0;
 }
 
-int user_runtime_dir(char **runtime_dir) {
+static int user_runtime_dir(char **runtime_dir) {
         const char *e;
         char *r;
 
index 5a5d734deb594f835bcc5b119da3b2b85f475bad..03f103dcc09536efe6f66f8d57a27638995affd3 100644 (file)
@@ -45,9 +45,6 @@ struct LookupPaths {
         char *root_dir;
 };
 
-int user_config_home(char **config_home);
-int user_runtime_dir(char **runtime_dir);
-
 char **generator_paths(UnitFileScope scope);
 
 int lookup_paths_init(LookupPaths *p, UnitFileScope scope, const char *root_dir);