diff options
Diffstat (limited to 'util-linux/fbset.c')
-rw-r--r-- | util-linux/fbset.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/util-linux/fbset.c b/util-linux/fbset.c index f963040bd..69986df25 100644 --- a/util-linux/fbset.c +++ b/util-linux/fbset.c | |||
@@ -385,8 +385,7 @@ int fbset_main(int argc, char **argv) | |||
385 | } | 385 | } |
386 | 386 | ||
387 | fh = xopen(fbdev, O_RDONLY); | 387 | fh = xopen(fbdev, O_RDONLY); |
388 | if (ioctl(fh, FBIOGET_VSCREENINFO, &var)) | 388 | xioctl(fh, FBIOGET_VSCREENINFO, &var); |
389 | bb_perror_msg_and_die("ioctl(%sT_VSCREENINFO)", "GE"); | ||
390 | if (g_options & OPT_READMODE) { | 389 | if (g_options & OPT_READMODE) { |
391 | if (!readmode(&var, modefile, mode)) { | 390 | if (!readmode(&var, modefile, mode)) { |
392 | bb_error_msg_and_die("unknown video mode '%s'", mode); | 391 | bb_error_msg_and_die("unknown video mode '%s'", mode); |
@@ -397,8 +396,7 @@ int fbset_main(int argc, char **argv) | |||
397 | if (g_options & OPT_CHANGE) { | 396 | if (g_options & OPT_CHANGE) { |
398 | if (g_options & OPT_ALL) | 397 | if (g_options & OPT_ALL) |
399 | var.activate = FB_ACTIVATE_ALL; | 398 | var.activate = FB_ACTIVATE_ALL; |
400 | if (ioctl(fh, FBIOPUT_VSCREENINFO, &var)) | 399 | xioctl(fh, FBIOPUT_VSCREENINFO, &var); |
401 | bb_perror_msg_and_die("ioctl(%sT_VSCREENINFO)", "PU"); | ||
402 | } | 400 | } |
403 | showmode(&var); | 401 | showmode(&var); |
404 | /* Don't close the file, as exiting will take care of that */ | 402 | /* Don't close the file, as exiting will take care of that */ |