]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
nstall: no need to export unit_file_lookup_state() anymore
authorLennart Poettering <lennart@poettering.net>
Fri, 8 Apr 2016 09:30:24 +0000 (11:30 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 12 Apr 2016 11:43:32 +0000 (13:43 +0200)
We only use it inside of install.c, hence let's make it static.

src/shared/install.c
src/shared/install.h

index 7497a392194c8b918b44a0763e016de405732dc3..3d48f612f3c639b1eff4e650971adf7609d3b343 100644 (file)
@@ -65,6 +65,8 @@ typedef struct {
         OrderedHashmap *have_processed;
 } InstallContext;
 
+static int unit_file_lookup_state(UnitFileScope scope, const LookupPaths *paths, const char *name, UnitFileState *ret);
+
 static int in_search_path(const LookupPaths *p, const char *path) {
         _cleanup_free_ char *parent = NULL;
         char **i;
@@ -1958,7 +1960,7 @@ int unit_file_get_default(
         return 0;
 }
 
-int unit_file_lookup_state(
+static int unit_file_lookup_state(
                 UnitFileScope scope,
                 const LookupPaths *paths,
                 const char *name,
index c57c23934bad80afdbf84fe3858f2a49c8d51a03..8d54fd14ad7b698df2e97802870bea8783293328 100644 (file)
@@ -137,7 +137,6 @@ int unit_file_set_default(UnitFileScope scope, const char *root_dir, const char
 int unit_file_get_default(UnitFileScope scope, const char *root_dir, char **name);
 int unit_file_add_dependency(UnitFileScope scope, bool runtime, const char *root_dir, char **files, const char *target, UnitDependency dep, bool force, UnitFileChange **changes, unsigned *n_changes);
 
-int unit_file_lookup_state(UnitFileScope scope, const LookupPaths *paths, const char *name, UnitFileState *ret);
 int unit_file_get_state(UnitFileScope scope, const char *root_dir, const char *filename, UnitFileState *ret);
 int unit_file_exists(UnitFileScope scope, const LookupPaths *paths, const char *name);