tree-wide: add more void casts for various syscall invocations
This commit is contained in:
+2
-2
@@ -2952,9 +2952,9 @@ void manager_set_show_status(Manager *m, ShowStatus mode) {
|
||||
m->show_status = mode;
|
||||
|
||||
if (mode > 0)
|
||||
touch("/run/systemd/show-status");
|
||||
(void) touch("/run/systemd/show-status");
|
||||
else
|
||||
unlink("/run/systemd/show-status");
|
||||
(void) unlink("/run/systemd/show-status");
|
||||
}
|
||||
|
||||
static bool manager_get_show_status(Manager *m, StatusType type) {
|
||||
|
||||
+1
-1
@@ -1215,7 +1215,7 @@ static int service_spawn(
|
||||
|
||||
if (is_control && UNIT(s)->cgroup_path) {
|
||||
path = strjoina(UNIT(s)->cgroup_path, "/control");
|
||||
cg_create(SYSTEMD_CGROUP_CONTROLLER, path);
|
||||
(void) cg_create(SYSTEMD_CGROUP_CONTROLLER, path);
|
||||
} else
|
||||
path = UNIT(s)->cgroup_path;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user