logind: voidify a few calls

This commit is contained in:
Lennart Poettering 2018-08-06 19:04:49 +02:00
parent e555d12635
commit 75bbdf478c
5 changed files with 11 additions and 11 deletions

View File

@ -239,7 +239,7 @@ int seat_set_active(Seat *s, Session *session) {
session_send_changed(old_active, "Active", NULL);
}
seat_apply_acls(s, old_active);
(void) seat_apply_acls(s, old_active);
if (session && session->started) {
session_send_changed(session, "Active", NULL);
@ -431,7 +431,7 @@ int seat_stop(Seat *s, bool force) {
seat_stop_sessions(s, force);
unlink(s->state_file);
(void) unlink(s->state_file);
seat_add_to_gc_queue(s);
if (s->started)

View File

@ -1002,7 +1002,7 @@ static void session_remove_fifo(Session *s) {
s->fifo_fd = safe_close(s->fifo_fd);
if (s->fifo_path) {
unlink(s->fifo_path);
(void) unlink(s->fifo_path);
s->fifo_path = mfree(s->fifo_path);
}
}

View File

@ -109,7 +109,7 @@ static int property_get_idle_since_hint(
assert(reply);
assert(u);
user_get_idle_hint(u, &t);
(void) user_get_idle_hint(u, &t);
k = streq(property, "IdleSinceHint") ? t.realtime : t.monotonic;
return sd_bus_message_append(reply, "t", k);

View File

@ -473,7 +473,7 @@ int user_finalize(User *u) {
r = k;
}
unlink(u->state_file);
(void) unlink(u->state_file);
user_add_to_gc_queue(u);
if (u->started) {

View File

@ -953,13 +953,13 @@ static void manager_gc(Manager *m, bool drop_not_started) {
/* First, if we are not closing yet, initiate stopping */
if (session_may_gc(session, drop_not_started) &&
session_get_state(session) != SESSION_CLOSING)
session_stop(session, false);
(void) session_stop(session, false);
/* Normally, this should make the session referenced
* again, if it doesn't then let's get rid of it
* immediately */
if (session_may_gc(session, drop_not_started)) {
session_finalize(session);
(void) session_finalize(session);
session_free(session);
}
}
@ -970,11 +970,11 @@ static void manager_gc(Manager *m, bool drop_not_started) {
/* First step: queue stop jobs */
if (user_may_gc(user, drop_not_started))
user_stop(user, false);
(void) user_stop(user, false);
/* Second step: finalize user */
if (user_may_gc(user, drop_not_started)) {
user_finalize(user);
(void) user_finalize(user);
user_free(user);
}
}
@ -1126,10 +1126,10 @@ static int manager_startup(Manager *m) {
/* And start everything */
HASHMAP_FOREACH(seat, m->seats, i)
seat_start(seat);
(void) seat_start(seat);
HASHMAP_FOREACH(user, m->users, i)
user_start(user);
(void) user_start(user);
HASHMAP_FOREACH(session, m->sessions, i)
session_start(session, NULL);