nspawn: add argument comments to various calls

This commit is contained in:
Lennart Poettering
2025-07-08 06:42:04 +02:00
parent 93555abe29
commit 3779bdd5a3
2 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -389,11 +389,11 @@ int terminate_scope(
_cleanup_free_ char *scope = NULL;
int r;
r = unit_name_mangle_with_suffix(machine_name, "to terminate", 0, ".scope", &scope);
r = unit_name_mangle_with_suffix(machine_name, "to terminate", /* flags= */ 0, ".scope", &scope);
if (r < 0)
return log_error_errno(r, "Failed to mangle scope name: %m");
r = bus_call_method(bus, bus_systemd_mgr, "AbandonScope", &error, NULL, "s", scope);
r = bus_call_method(bus, bus_systemd_mgr, "AbandonScope", &error, /* ret_reply= */ NULL, "s", scope);
if (r < 0) {
log_debug_errno(r, "Failed to abandon scope '%s', ignoring: %s", scope, bus_error_message(&error, r));
sd_bus_error_free(&error);
@@ -414,7 +414,7 @@ int terminate_scope(
sd_bus_error_free(&error);
}
r = bus_call_method(bus, bus_systemd_mgr, "UnrefUnit", &error, NULL, "s", scope);
r = bus_call_method(bus, bus_systemd_mgr, "UnrefUnit", &error, /* ret_reply= */ NULL, "s", scope);
if (r < 0)
log_debug_errno(r, "Failed to drop reference to scope '%s', ignoring: %s", scope, bus_error_message(&error, r));
+3 -3
View File
@@ -5483,13 +5483,13 @@ static int run_container(
r = sd_bus_match_signal_async(
bus,
NULL,
/* ret= */ NULL,
"org.freedesktop.systemd1",
NULL,
/* path= */ NULL,
"org.freedesktop.systemd1.Scope",
"RequestStop",
on_request_stop,
NULL,
/* install_callback= */ NULL,
pid);
if (r < 0)
return log_error_errno(r, "Failed to request RequestStop match: %m");