1
0
mirror of https://github.com/systemd/systemd synced 2025-11-21 09:44:44 +01:00

Compare commits

..

2 Commits

Author SHA1 Message Date
Mike Yuan
fd99d9d1cb
man/userdbctl: fixup version info
Follow-up for 466562c69b75cec197176f556b940a43bb8350f2
2025-10-08 22:17:54 +02:00
Jelle van der Waa
56aa047237 logind: cast various calls that return errors we ignore to (void) 2025-10-08 21:54:12 +02:00
2 changed files with 7 additions and 7 deletions

View File

@ -233,7 +233,7 @@
<listitem><para>When used with the <command>user</command> or <command>group</command> command,
filters the output to the record with the specified UUID. If unspecified, no UUID-based filtering is applied.</para>
<xi:include href="version-info.xml" xpointer="v258"/></listitem>
<xi:include href="version-info.xml" xpointer="v259"/></listitem>
</varlistentry>
<varlistentry>

View File

@ -828,8 +828,8 @@ int session_start(Session *s, sd_bus_message *properties, sd_bus_error *error) {
(void) seat_save(s->seat);
/* Send signals */
session_send_signal(s, true);
user_send_changed(s->user, "Display");
(void) session_send_signal(s, true);
(void) user_send_changed(s->user, "Display");
if (s->seat && s->seat->active == s)
(void) seat_send_changed(s->seat, "ActiveSession");
@ -1110,13 +1110,13 @@ int session_set_idle_hint(Session *s, bool b) {
s->idle_hint = b;
dual_timestamp_now(&s->idle_hint_timestamp);
session_send_changed(s, "IdleHint", "IdleSinceHint", "IdleSinceHintMonotonic");
(void) session_send_changed(s, "IdleHint", "IdleSinceHint", "IdleSinceHintMonotonic");
if (s->seat)
seat_send_changed(s->seat, "IdleHint", "IdleSinceHint", "IdleSinceHintMonotonic");
(void) seat_send_changed(s->seat, "IdleHint", "IdleSinceHint", "IdleSinceHintMonotonic");
user_send_changed(s->user, "IdleHint", "IdleSinceHint", "IdleSinceHintMonotonic");
manager_send_changed(s->manager, "IdleHint", "IdleSinceHint", "IdleSinceHintMonotonic");
(void) user_send_changed(s->user, "IdleHint", "IdleSinceHint", "IdleSinceHintMonotonic");
(void) manager_send_changed(s->manager, "IdleHint", "IdleSinceHint", "IdleSinceHintMonotonic");
return 1;
}