chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
nspawn: use the corect method signature for CreateMachine()
[elogind.git]
/
src
/
nspawn
/
nspawn.c
diff --git
a/src/nspawn/nspawn.c
b/src/nspawn/nspawn.c
index 913e73673a5f5decf7a9cfd4520a5914efbeddbe..cfd88efc9e6943946c97397974bc4bbc3a984bb3 100644
(file)
--- a/
src/nspawn/nspawn.c
+++ b/
src/nspawn/nspawn.c
@@
-1168,16
+1168,16
@@
static int register_machine(void) {
"CreateMachine",
&error,
NULL,
"CreateMachine",
&error,
NULL,
- "sayssus
s
",
+ "sayssus
a(sv)
",
arg_machine,
SD_BUS_APPEND_ID128(arg_uuid),
"nspawn",
"container",
(uint32_t) 0,
arg_machine,
SD_BUS_APPEND_ID128(arg_uuid),
"nspawn",
"container",
(uint32_t) 0,
- strempty(arg_
slice
),
-
strempty(arg_directory
));
+ strempty(arg_
directory
),
+
1, "Slice", "s", strempty(arg_slice
));
if (r < 0) {
if (r < 0) {
- log_error("Failed to register machine: %s", error.message);
+ log_error("Failed to register machine: %s", error.message
? error.message : strerror(-r)
);
return r;
}
return r;
}