From: Lennart Poettering Date: Thu, 12 Jun 2025 15:38:04 +0000 (+0200) Subject: nspawn: add argument comments to various calls X-Git-Tag: v258-rc1~140^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3779bdd5a3dde33b81c912ff7c672e65a5269d84;p=thirdparty%2Fsystemd.git nspawn: add argument comments to various calls --- diff --git a/src/nspawn/nspawn-register.c b/src/nspawn/nspawn-register.c index 15820695057..5046f5d79c0 100644 --- a/src/nspawn/nspawn-register.c +++ b/src/nspawn/nspawn-register.c @@ -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)); diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c index 27d26f98095..e3ffc8c41d9 100644 --- a/src/nspawn/nspawn.c +++ b/src/nspawn/nspawn.c @@ -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");