chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mount: fix up wording in the comment
[elogind.git]
/
src
/
core
/
snapshot.c
diff --git
a/src/core/snapshot.c
b/src/core/snapshot.c
index 900d0d793a24a36f752d23a1694cfeded694aac7..b1d8448771d9fe6ef290448bc44ef4fb3456f28d 100644
(file)
--- a/
src/core/snapshot.c
+++ b/
src/core/snapshot.c
@@
-25,7
+25,7
@@
#include "snapshot.h"
#include "unit-name.h"
#include "dbus-snapshot.h"
#include "snapshot.h"
#include "unit-name.h"
#include "dbus-snapshot.h"
-#include "bus-errors.h"
+#include "bus-
common-
errors.h"
static const UnitActiveState state_translation_table[_SNAPSHOT_STATE_MAX] = {
[SNAPSHOT_DEAD] = UNIT_INACTIVE,
static const UnitActiveState state_translation_table[_SNAPSHOT_STATE_MAX] = {
[SNAPSHOT_DEAD] = UNIT_INACTIVE,
@@
-75,7
+75,7
@@
static int snapshot_load(Unit *u) {
return 0;
}
return 0;
}
-static int snapshot_coldplug(Unit *u) {
+static int snapshot_coldplug(Unit *u
, Hashmap *deferred_work
) {
Snapshot *s = SNAPSHOT(u);
assert(s);
Snapshot *s = SNAPSHOT(u);
assert(s);
@@
-111,7
+111,7
@@
static int snapshot_start(Unit *u) {
if (s->cleanup)
unit_add_to_cleanup_queue(u);
if (s->cleanup)
unit_add_to_cleanup_queue(u);
- return
0
;
+ return
1
;
}
static int snapshot_stop(Unit *u) {
}
static int snapshot_stop(Unit *u) {
@@
-121,7
+121,7
@@
static int snapshot_stop(Unit *u) {
assert(s->state == SNAPSHOT_ACTIVE);
snapshot_set_state(s, SNAPSHOT_DEAD);
assert(s->state == SNAPSHOT_ACTIVE);
snapshot_set_state(s, SNAPSHOT_DEAD);
- return
0
;
+ return
1
;
}
static int snapshot_serialize(Unit *u, FILE *f, FDSet *fds) {
}
static int snapshot_serialize(Unit *u, FILE *f, FDSet *fds) {