summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-03-13 21:21:38 -0500
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-03-13 23:42:17 -0400
commit2bf105232f82ef5c9073b8f9809bd9d987257b1c (patch)
tree6c13c7d36e8a373cc557b881326da4da492b9399 /src
parentd3839740fa9b34fc58b8a327f83805f57fd182ac (diff)
logind: explicitly ignore errors we can do nothing about
CID #1237545.
Diffstat (limited to 'src')
-rw-r--r--src/login/logind-session.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/login/logind-session.c b/src/login/logind-session.c
index e9b179067c..8d33579a01 100644
--- a/src/login/logind-session.c
+++ b/src/login/logind-session.c
@@ -1039,15 +1039,15 @@ void session_restore_vt(Session *s) {
if (vt < 0)
return;
- ioctl(vt, KDSETMODE, KD_TEXT);
+ (void) ioctl(vt, KDSETMODE, KD_TEXT);
if (read_one_line_file("/sys/module/vt/parameters/default_utf8", &utf8) >= 0 && *utf8 == '1')
kb = K_UNICODE;
- ioctl(vt, KDSKBMODE, kb);
+ (void) ioctl(vt, KDSKBMODE, kb);
mode.mode = VT_AUTO;
- ioctl(vt, VT_SETMODE, &mode);
+ (void) ioctl(vt, VT_SETMODE, &mode);
fchown(vt, 0, -1);