summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-03-24 20:49:00 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-07-17 14:27:23 +0200
commit043fdc40105f976fc4884dbe95345d1cf05f5c64 (patch)
treea2a092807c012f4bd2daa514964e291993edce55 /src/core
parentb5328434c91b10ad49647e2352e62b1fbdce329d (diff)
downloadsystemd-043fdc40105f976fc4884dbe95345d1cf05f5c64.tar.gz
systemd-043fdc40105f976fc4884dbe95345d1cf05f5c64.tar.bz2
systemd-043fdc40105f976fc4884dbe95345d1cf05f5c64.zip
pid1: kill unit_file_find_dropin_paths() helper
It had two users, but it is just a very thin wrapper around unit_file_find_dropin_paths(), so using it seems more complicated than directly invoking unit_file_find_dropin_paths() twice.
Diffstat (limited to 'src/core')
-rw-r--r--src/core/load-dropin.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/core/load-dropin.h b/src/core/load-dropin.h
index bb10a76338..ea15554d88 100644
--- a/src/core/load-dropin.h
+++ b/src/core/load-dropin.h
@@ -9,11 +9,12 @@
static inline int unit_find_dropin_paths(Unit *u, char ***paths) {
assert(u);
- return unit_file_find_dropin_conf_paths(NULL,
- u->manager->lookup_paths.search_path,
- u->manager->unit_path_cache,
- u->names,
- paths);
+ return unit_file_find_dropin_paths(NULL,
+ u->manager->lookup_paths.search_path,
+ u->manager->unit_path_cache,
+ ".d", ".conf",
+ u->names,
+ paths);
}
int unit_load_dropin(Unit *u);