tree-wide: add more void casts for various syscall invocations

This commit is contained in:
Lennart Poettering
2015-10-19 23:07:18 +02:00
parent 4b4cb0a1ff
commit ac5b0c13d8
4 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -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
View File
@@ -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;