tree-wide: normalize comment style

This commit is contained in:
Yu Watanabe
2025-12-15 08:50:13 +09:00
parent 8e20b9a79d
commit 93378148d4
431 changed files with 1894 additions and 1895 deletions
+1 -1
View File
@@ -405,7 +405,7 @@ int verb_enable(int argc, char *argv[], void *userdata) {
assert(!STR_IN_SET(start_verb, "start", "restart"));
r = unit_name_replace_instance_full(unit_name, "*", /* accept_glob = */ true, &globbed);
r = unit_name_replace_instance_full(unit_name, "*", /* accept_glob= */ true, &globbed);
if (r < 0)
return log_error_errno(r, "Failed to glob unit name '%s': %m", unit_name);
+2 -2
View File
@@ -144,7 +144,7 @@ static int list_dependencies_one(
continue;
}
r = list_dependencies_print(*c, active_state, level, branches, /* last = */ c[1] == NULL && !circular);
r = list_dependencies_print(*c, active_state, level, branches, /* last= */ c[1] == NULL && !circular);
if (r < 0)
return r;
@@ -156,7 +156,7 @@ static int list_dependencies_one(
}
if (circular && !arg_plain) {
r = list_dependencies_print("...", _UNIT_ACTIVE_STATE_INVALID, level, branches, /* last = */ true);
r = list_dependencies_print("...", _UNIT_ACTIVE_STATE_INVALID, level, branches, /* last= */ true);
if (r < 0)
return r;
}
+2 -2
View File
@@ -76,7 +76,7 @@ int logind_reboot(enum action a) {
if (!actions[a])
return -EINVAL;
r = acquire_bus_full(BUS_FULL, /* graceful = */ true, &bus);
r = acquire_bus_full(BUS_FULL, /* graceful= */ true, &bus);
if (r < 0)
return r;
@@ -167,7 +167,7 @@ int logind_check_inhibitors(enum action a) {
if (arg_transport != BUS_TRANSPORT_LOCAL)
return 0;
r = acquire_bus_full(BUS_FULL, /* graceful = */ true, &bus);
r = acquire_bus_full(BUS_FULL, /* graceful= */ true, &bus);
if ((ERRNO_IS_NEG_DISCONNECT(r) || r == -ENOENT) && geteuid() == 0)
return 0; /* When D-Bus is not running (ECONNREFUSED) or D-Bus socket is not created (ENOENT),
* allow root to force a shutdown. E.g. when running at the emergency console. */
+1 -1
View File
@@ -940,7 +940,7 @@ static void print_status_info(
i->id,
i->log_namespace,
arg_output,
/* n_columns = */ 0,
/* n_columns= */ 0,
i->inactive_exit_timestamp_monotonic,
arg_lines,
get_output_flags() | OUTPUT_BEGIN_NEWLINE,
+1 -1
View File
@@ -422,7 +422,7 @@ int verb_start(int argc, char *argv[], void *userdata) {
* another active unit (socket, path, timer) */
if (!arg_quiet && !arg_no_warn)
STRV_FOREACH(unit, stopped_units)
warn_triggering_units(bus, *unit, "Stopping", /* ignore_masked = */ true);
warn_triggering_units(bus, *unit, "Stopping", /* ignore_masked= */ true);
}
if (arg_wait) {
+1 -1
View File
@@ -760,7 +760,7 @@ int append_unit_dependencies(sd_bus *bus, char **names, char ***ret) {
(void) unit_get_dependencies(bus, *name, &deps);
if (strv_extend_strv_consume(&with_deps, deps, /* filter_duplicates = */ true) < 0)
if (strv_extend_strv_consume(&with_deps, deps, /* filter_duplicates= */ true) < 0)
return log_oom();
}
+2 -2
View File
@@ -28,7 +28,7 @@ int verb_whoami(int argc, char *argv[], void *userdata) {
/* Our own process can never go away while querying, hence no need to go through pidfd. */
r = get_unit_by_pid(bus, 0, &unit, /* ret_path = */ NULL);
r = get_unit_by_pid(bus, 0, &unit, /* ret_path= */ NULL);
if (r < 0)
return r;
@@ -44,7 +44,7 @@ int verb_whoami(int argc, char *argv[], void *userdata) {
if (r < 0)
return log_error_errno(r, "Invalid PID specified: %s", *pidstr);
r = lookup_unit_by_pidref(bus, pid, &unit, /* ret_path = */ NULL);
r = lookup_unit_by_pidref(bus, pid, &unit, /* ret_path= */ NULL);
if (r < 0)
RET_GATHER(ret, r);
else