summaryrefslogtreecommitdiff
path: root/load-fragment.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-02-14 01:01:10 +0100
committerLennart Poettering <lennart@poettering.net>2010-02-14 01:01:10 +0100
commit6be1e7d538e12f4e5c79c1271dba90e66726d8fd (patch)
treea32725c522b5ce99a95fd9ce67c771fa50088840 /load-fragment.c
parent380bc8790dd284bbf967add222fa90d117ed50ea (diff)
unit: rename load_path to fragment_path to make clear what kind of configuration file this is
Diffstat (limited to 'load-fragment.c')
-rw-r--r--load-fragment.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/load-fragment.c b/load-fragment.c
index 64e66f314e..4183b5c8fa 100644
--- a/load-fragment.c
+++ b/load-fragment.c
@@ -1207,8 +1207,8 @@ static int load_from_path(Unit *u, const char *path) {
}
- free(u->meta.load_path);
- u->meta.load_path = filename;
+ free(u->meta.fragment_path);
+ u->meta.fragment_path = filename;
filename = NULL;
r = 1; /* returning 1 means: suitable config file found and loaded */
@@ -1229,8 +1229,8 @@ int unit_load_fragment(Unit *u) {
assert(u);
assert(u->meta.load_state == UNIT_STUB);
- if (u->meta.load_path)
- r = load_from_path(u, u->meta.load_path);
+ if (u->meta.fragment_path)
+ r = load_from_path(u, u->meta.fragment_path);
else {
Iterator i;
char *t;