sd-bus: coding style cleanups

- replace `type *func()` -> `type* func()`,
- rename arguments for storing results,
- add several missing assertions.
This commit is contained in:
Yu Watanabe
2025-06-18 01:54:07 +09:00
parent 8cec3cbeb1
commit 31a1e15ccb
21 changed files with 585 additions and 566 deletions
+3 -2
View File
@@ -964,7 +964,8 @@ static int update_interrupted(sd_event_source *source, void *userdata) {
op->job_path,
"org.freedesktop.sysupdate1.Job",
"Cancel",
&error, /* reply= */ NULL,
&error,
/* ret_reply= */ NULL,
NULL);
if (r < 0)
return log_bus_error(r, &error, NULL, "call Cancel");
@@ -1412,7 +1413,7 @@ static int verb_enable(int argc, char **argv, void *userdata) {
SYSUPDATE_TARGET_INTERFACE,
"SetFeatureEnabled",
&error,
/* reply= */ NULL,
/* ret_reply= */ NULL,
"sit",
*feature,
(int) enable,