X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fsnapshot.c;h=82ec5104dbfa07bd81085e32fefd8ae950864783;hb=ce3fd7e72a1b101002617bd410031e65d290f56f;hp=bc1388c36a6986283119740c7481ef91e619636d;hpb=ac155bb885f9ea8aac3979a6b2686f0c8a9cc6e3;p=elogind.git diff --git a/src/snapshot.c b/src/snapshot.c index bc1388c36..82ec5104d 100644 --- a/src/snapshot.c +++ b/src/snapshot.c @@ -36,10 +36,10 @@ static void snapshot_init(Unit *u) { Snapshot *s = SNAPSHOT(u); assert(s); - assert(s->meta.load_state == UNIT_STUB); + assert(UNIT(s)->load_state == UNIT_STUB); - s->meta.ignore_on_isolate = true; - s->meta.ignore_on_snapshot = true; + UNIT(s)->ignore_on_isolate = true; + UNIT(s)->ignore_on_snapshot = true; } static void snapshot_set_state(Snapshot *s, SnapshotState state) { @@ -51,7 +51,7 @@ static void snapshot_set_state(Snapshot *s, SnapshotState state) { if (state != old_state) log_debug("%s changed %s -> %s", - s->meta.id, + UNIT(s)->id, snapshot_state_to_string(old_state), snapshot_state_to_string(state)); @@ -66,7 +66,7 @@ static int snapshot_load(Unit *u) { /* Make sure that only snapshots created via snapshot_create() * can be loaded */ - if (!s->by_snapshot_create && s->meta.manager->n_reloading <= 0) + if (!s->by_snapshot_create && UNIT(s)->manager->n_reloading <= 0) return -ENOENT; u->load_state = UNIT_LOADED;